GPUDevice: phương thức destroy()

Khả dụng hạn chế

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

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.

Phương thức destroy() của giao diện GPUDevice hủy thiết bị, ngăn không cho thực hiện thêm thao tác nào trên nó.

Cú pháp

js
destroy()

Giá trị trả về

undefined.

Đặc tả

Thông số kỹ thuật
WebGPU
# dom-gpudevice-destroy

Tương thích trình duyệt