Values
15 members
Literals, typed references and the constructors that turn a JavaScript value into a node.
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
-
arrayLitFunction - A fixed-length array literal,
array<elemKey, N>(...). -
bindingRefFunction - A module-level binding reference.
-
boolFunction - A bool literal node, the condition type for .select(),
select()and control flow (If, While). -
constRefFunction - A reference to a module-level constant by name, such as one declared with constExpr.
-
constructFunction - Low-level TypeName(args) constructor call, the primitive that
vec2,vec3,vec2f64and a struct's .construct({...}) all build on. -
enumU32Function - Declare a
u32enum from a name-to-value map: const Kind = enumU32. -
EnumU32Interface - A typed
u32enum: a name-to-value map whose members are Node<'u32'> literals, plus the raw value map. -
externRefFunction - A read of a global the host provides, the read side of an externVar(...) declaration and the variable counterpart of an externFn call.
-
f32Function - An
f32literal node. -
f64Function - An
f64literal node. -
i32Function - An
i32literal node. -
memberFunction - Low-level struct member access, base.name, with the field type given explicitly.
-
overrideRefFunction - A read of a pipeline specialization constant, the read side of an overrideConst(...) declaration.
-
paramFunction - A function parameter reference, with the key inferred from the ShaderType.
-
u32Function - A
u32literal node.