Skip to main content

GPUQuerySet

The GPUQuerySet interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries. Available only in secure contexts.

MDN Reference

Extends​

Methods​

destroy()​

destroy(): void;

The destroy() method of the GPUQuerySet interface destroys the GPUQuerySet.

MDN Reference

Returns​

void

Properties​

count​

readonly count: number;

The count read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.

MDN Reference


label​

label: string;

MDN Reference

Inherited from​

GPUObjectBase.label


type​

readonly type: GPUQueryType;

The type read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.

MDN Reference