Class GPUCompilationMessage
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The GPUCompilationMessage interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} represents a single informational, warning, or error message generated by the GPU shader module compiler.
[Value("GPUCompilationMessage")]
public class GPUCompilationMessage
- Inheritance
-
GPUCompilationMessage
- Inherited Members
Remarks
An array of GPUCompilationMessage objects is available in the messages property of the GPUCompilationInfo object accessed via GetCompilationInfo().
-The WebGPU API
Constructors
GPUCompilationMessage()
public GPUCompilationMessage()
Properties
Length
The length read-only property of the
GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
[Value("length")]
public ulong Length { get; }
Property Value
- ulong
A number.To be precise,
lengthis the number of UTF-16 in the shader code substring that the message corresponds to. If the message corresponds to a single point rather than a substring,lengthwill be 0.
Remarks
LineNum
The lineNum read-only property of the
GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
[Value("lineNum")]
public ulong LineNum { get; }
Property Value
- ulong
A number.Note that:
Remarks
LinePos
The linePos read-only property of the
GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
[Value("linePos")]
public ulong LinePos { get; }
Property Value
- ulong
A number.To be precise,
linePosis the number of UTF-16 from the beginning of the line to the exact point or start of the relevant substring that the message corresponds to.Note that:
Remarks
Message
The message read-only property of the
GPUCompilationMessage interface is a string representing human-readable message text.
[Value("message")]
public string Message { get; }
Property Value
- string
A string.
Remarks
Offset
The offset read-only property of the
GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
[Value("offset")]
public ulong Offset { get; }
Property Value
- ulong
A number.To be precise,
offsetis the number of UTF-16 from the beginning of the shader code to the exact point or start of the relevant substring that the message corresponds to.If the message does not correspond to a specific code position (perhaps it refers to the whole of the shader code),offsetwill be 0.
Remarks
Type
The type read-only property of the
GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
[Value("type")]
public GPUCompilationMessageType Type { get; }
Property Value
- GPUCompilationMessageType
A enumerated value. Possible values are: