Values

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 26de7be8.

arrayLit Function
A fixed-length array literal, array<elemKey, N>(...).
bindingRef Function
A module-level binding reference.
bool Function
A bool literal node, the condition type for .select(), select() and control flow (If, While).
constRef Function
A reference to a module-level constant by name, such as one declared with constExpr.
construct Function
Low-level TypeName(args) constructor call, the primitive that vec2, vec3, vec2f64 and a struct's .construct({...}) all build on.
enumU32 Function
Declare a u32 enum from a name-to-value map: const Kind = enumU32.
EnumU32 Interface
A typed u32 enum: a name-to-value map whose members are Node<'u32'> literals, plus the raw value map.
externRef Function
A read of a global the host provides, the read side of an externVar(...) declaration and the variable counterpart of an externFn call.
f32 Function
An f32 literal node.
f64 Function
An f64 literal node.
i32 Function
An i32 literal node.
member Function
Low-level struct member access, base.name, with the field type given explicitly.
overrideRef Function
A read of a pipeline specialization constant, the read side of an overrideConst(...) declaration.
param Function
A function parameter reference, with the key inferred from the ShaderType.
u32 Function
A u32 literal node.

Edit this page Report a problem