GPUError
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.
Giao diện GPUError của WebGPU API là giao diện cơ sở cho các lỗi được hiển thị bởi GPUDevice.popErrorScope và sự kiện uncapturederror.
Thuộc tính phiên bản
messageRead only-
Một chuỗi cung cấp thông báo dễ đọc giải thích lý do tại sao lỗi xảy ra.
Ví dụ
Để biết ví dụ sử dụng các đối tượng lỗi dựa trên GPUError, xem:
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebGPU> # gpuerror> |