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

Data Fields

double r
 
double g
 
double b
 
double a
 

Detailed Description

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 1907 of file webgpu.h.

Field Documentation

◆ r

double WGPUColor::r

The INIT macro sets this to 0..

Definition at line 1911 of file webgpu.h.

◆ g

double WGPUColor::g

The INIT macro sets this to 0..

Definition at line 1915 of file webgpu.h.

◆ b

double WGPUColor::b

The INIT macro sets this to 0..

Definition at line 1919 of file webgpu.h.

◆ a

double WGPUColor::a

The INIT macro sets this to 0..

Definition at line 1923 of file webgpu.h.