GPUQuerySet: destroy() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

Syntax

js
destroy()

Parameters

None.

Return value

None (Undefined).

Examples

js
const querySet = device.createQuerySet({
  type: "occlusion",
  count: 32,
});

// Some time later

querySet.destroy();

Specifications

Specification
WebGPU
# dom-gpuqueryset-destroy

Browser compatibility

desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
Deno
destroy
Experimental

See also