Table of Contents

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

severity WebGPUShaderDiagnosticSeverity

The diagnostic severity.

message string

The compiler message.

line int

The one-based user-source line, or zero when the message belongs to generated framework code.

column int

The 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

int

Line

Gets the one-based user-source line, or zero when the message belongs to generated framework code.

public int Line { get; }

Property Value

int

Message

Gets the compiler message.

public string Message { get; }

Property Value

string

Severity

Gets the diagnostic severity.

public WebGPUShaderDiagnosticSeverity Severity { get; }

Property Value

WebGPUShaderDiagnosticSeverity