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

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView key
 
double value
 

Detailed Description

Default values can be set using WGPU_CONSTANT_ENTRY_INIT as initializer.

Definition at line 2042 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUConstantEntry::nextInChain

Definition at line 2043 of file webgpu.h.

◆ key

WGPUStringView WGPUConstantEntry::key

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 2049 of file webgpu.h.

◆ value

double WGPUConstantEntry::value

Represents a WGSL numeric or boolean value using Double-as-Supertype.

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

The INIT macro sets this to 0..

Definition at line 2057 of file webgpu.h.