GPUQuerySet: destroy() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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
- The WebGPU API