WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUCompilationMessage Struct Reference

Data Fields

WGPUChainedStruct const * nextInChain
 
WGPUStringView message
 
WGPUCompilationMessageType type
 
uint64_t lineNum
 
uint64_t linePos
 
uint64_t offset
 
uint64_t length
 

Detailed Description

Default values can be set using WGPU_COMPILATION_MESSAGE_INIT as initializer.

Definition at line 1800 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUCompilationMessage::nextInChain

Definition at line 1801 of file webgpu.h.

◆ message

WGPUStringView WGPUCompilationMessage::message

A Localizable Human-Readable Message String.

This is an Output String.

Defaults to WGPU_STRING_VIEW_INIT.

Definition at line 1809 of file webgpu.h.

◆ type

WGPUCompilationMessageType WGPUCompilationMessage::type

Severity level of the message.

Defaults to (WGPUCompilationMessageType)0.

Definition at line 1815 of file webgpu.h.

◆ lineNum

uint64_t WGPUCompilationMessage::lineNum

Line number where the message is attached, starting at 1.

Defaults to 0.

Definition at line 1821 of file webgpu.h.

◆ linePos

uint64_t WGPUCompilationMessage::linePos

Offset in UTF-8 code units (bytes) from the beginning of the line, starting at 1.

Defaults to 0.

Definition at line 1827 of file webgpu.h.

◆ offset

uint64_t WGPUCompilationMessage::offset

Offset in UTF-8 code units (bytes) from the beginning of the shader code, starting at 0.

Defaults to 0.

Definition at line 1833 of file webgpu.h.

◆ length

uint64_t WGPUCompilationMessage::length

Length in UTF-8 code units (bytes) of the span the message corresponds to.

Defaults to 0.

Definition at line 1839 of file webgpu.h.