Class GPUPipelineError
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The GPUPipelineError interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} describes a pipeline failure. This is the value received when a {{jsxref("Promise")}} returned by a CreateComputePipelineAsync(GPUComputePipelineDescriptor) or CreateRenderPipelineAsync(GPURenderPipelineDescriptor) call rejects.
[Value("GPUPipelineError")]
public class GPUPipelineError : DOMException
- Inheritance
-
GPUPipelineError
- Inherited Members
Remarks
Constructors
GPUPipelineError()
public GPUPipelineError()
GPUPipelineError(string, GPUPipelineErrorInit)
The GPUPipelineError() constructor creates a new
GPUPipelineError object instance.
public GPUPipelineError(string message = null, GPUPipelineErrorInit options = null)
Parameters
messagestringoptionsGPUPipelineErrorInit
Remarks
Properties
Reason
The reason read-only property of the
GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
[Value("reason")]
public GPUPipelineErrorReason Reason { get; }
Property Value
- GPUPipelineErrorReason
An enumerated value that can be one of: