web api instance method
GPUQuerySet: destroy() method
Secure contextAvailable in workers
The destroy() method of the
GPUQuerySet interface destroys the GPUQuerySet.
Syntax
destroy()
Parameters
None.
Return value
None (undefined).
Examples
const querySet = device.createQuerySet({
type: "occlusion",
count: 32,
});
// Some time later
querySet.destroy();
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The WebGPU API