Struct WebGPUShaderDiagnostic
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Describes one message produced while compiling a WebGPU layer-effect shader.
public readonly struct WebGPUShaderDiagnostic
- Inherited Members
Constructors
WebGPUShaderDiagnostic(WebGPUShaderDiagnosticSeverity, string, int, int)
Initializes a new instance of the WebGPUShaderDiagnostic struct.
public WebGPUShaderDiagnostic(WebGPUShaderDiagnosticSeverity severity, string message, int line, int column)
Parameters
severityWebGPUShaderDiagnosticSeverityThe diagnostic severity.
messagestringThe compiler message.
lineintThe one-based user-source line, or zero when the message belongs to generated framework code.
columnintThe one-based source column, or zero when the compiler does not provide one.
Properties
Column
Gets the one-based source column, or zero when the compiler does not provide one.
public int Column { get; }
Property Value
Line
Gets the one-based user-source line, or zero when the message belongs to generated framework code.
public int Line { get; }
Property Value
Message
Gets the compiler message.
public string Message { get; }
Property Value
Severity
Gets the diagnostic severity.
public WebGPUShaderDiagnosticSeverity Severity { get; }