| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://gpuweb.github.io/gpuweb/ |
| |
| dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase { |
| required GPUQueryType type; |
| required GPUSize32 count; |
| sequence<GPUPipelineStatisticName> pipelineStatistics = []; |
| }; |
| |
| enum GPUQueryType { |
| "occlusion", |
| "pipeline-statistics", |
| "timestamp" |
| }; |
| |
| enum GPUPipelineStatisticName { |
| "vertex-shader-invocations", |
| "clipper-invocations", |
| "clipper-primitives-out", |
| "fragment-shader-invocations", |
| "compute-shader-invocations" |
| }; |