Class GPUQuerySet
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The GPUQuerySet interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} is used to record the results of queries on passes, such as occlusion or timestamp queries.
[Value("GPUQuerySet")]
public class GPUQuerySet
- Inheritance
-
GPUQuerySet
- Inherited Members
Remarks
NOTE
The
timestamp-queryfeature needs to be enabled to use timestamp queries.
A GPUQuerySet object instance is created using the CreateQuerySet(GPUQuerySetDescriptor) method.
-The WebGPU API
Constructors
GPUQuerySet()
public GPUQuerySet()
Properties
Count
The count read-only property of the
GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
[Value("count")]
public ulong Count { get; }
Property Value
- ulong
A number.
Remarks
Type
The type read-only property of the
GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
[Value("type")]
public GPUQueryType Type { get; }
Property Value
- GPUQueryType
An enumerated value. Possible values are:
NOTE
Thetimestamp-queryfeature needs to be enabled to use timestamp queries.
Remarks
Methods
Destroy()
The destroy() method of the
GPUQuerySet interface destroys the GPUQuerySet.
[Value("destroy")]
public GlobalObject.Undefined Destroy()