GPUCompilationMessage

class wgpu.GPUCompilationMessage

Bases: object

An object that contains information about a problem with shader compilation.

property length: int

The length of the line?

property line_num: int

The corresponding line number in the shader source.

property line_pos: int

The position on the line in the shader source.

property message: str

The warning/error message.

property offset: int

Offset of …

property type: CompilationMessageType

The type of warning/problem.