GPUDevice: phương thức pushErrorScope()
Limited availability
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 pushErrorScope() của giao diện GPUDevice đẩy một GPU error scope mới lên ngăn xếp error scope của thiết bị, cho phép bạn bắt các lỗi thuộc một kiểu nhất định.
Cú pháp
js
pushErrorScope(filter)
Tham số
filter-
Bộ lọc kiểu lỗi cần bắt.
Giá trị trả về
undefined.
Đặc tả
| Specification |
|---|
| WebGPU> # dom-gpudevice-pusherrorscope> |