Interface GPUCompilationMessage
length: number;
lineNum: number;
linePos: number;
message: string;
offset: number;
type: GPUCompilationMessageType;
}
Properties
Readonlylength
The length read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
ReadonlylineNum
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.
ReadonlylinePos
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.
Readonlymessage
The message read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
Readonlyoffset
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.
Readonlytype
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.
The
GPUCompilationMessageinterface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. Available only in secure contexts.MDN Reference