GPUPipelineError: reason property

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.

Thuộc tính chỉ đọc reason của giao diện GPUPipelineError xác định lý do tạo pipeline thất bại theo cách máy có thể đọc được.

Giá trị

Giá trị được liệt kê có thể là một trong:

"internal"

Tạo pipeline thất bại vì lỗi nội bộ (xem GPUInternalError để biết thêm thông tin về các loại lỗi này.)

"validation"

Tạo pipeline thất bại vì lỗi xác thực (xem GPUValidationError để biết thêm thông tin về các loại lỗi này.)

Ví dụ

Xem trang GPUPipelineError chính để biết ví dụ liên quan đến phiên bản đối tượng GPUPipelineError.

Thông số kỹ thuật

Thông số kỹ thuật
WebGPU
# dom-gpupipelineerror-reason

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

Xem thêm