1. Web
  2. Web APIs
  3. GPUQuerySet
  4. destroy()

GPUQuerySet: destroy() method

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Want more support for this feature? Tell us why.

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

Note: This feature is available in Web Workers.

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

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /