WebGPU Headers: WGPUColor Struct Reference

Data Fields

double r
 
double g
 
double b
 
double a
 

An RGBA color. Represents a f32, i32, or u32 color using Double-as-Supertype.

If any channel is non-finite, produces a Non-Finite Float Value Errors.

Default values can be set using WGPU_COLOR_INIT as initializer.

Definition at line 1955 of file webgpu.h.

◆ r

The INIT macro sets this to 0..

Definition at line 1959 of file webgpu.h.

◆ g

The INIT macro sets this to 0..

Definition at line 1963 of file webgpu.h.

◆ b

The INIT macro sets this to 0..

Definition at line 1967 of file webgpu.h.

◆ a

The INIT macro sets this to 0..

Definition at line 1971 of file webgpu.h.