Back to Content

GPUQuerySet: destroy() method

files/en-us/web/api/gpuqueryset/destroy/index.md

latest569 B
Original Source

{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{AvailableInWorkers}}

The destroy() method of the {{domxref("GPUQuerySet")}} interface destroys the GPUQuerySet.

Syntax

js-nolint
destroy()

Parameters

None.

Return value

None ({{jsxref("Undefined")}}).

Examples

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

// Some time later

querySet.destroy();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also