GPUQuerySet: destroy() method

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

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

BCD tables only load in the browser

See also