Layout
24 members
The declarators that state a struct or a bound resource once, for the host and both targets.
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
-
arrayOfFunction - Declare a fixed-length array field inside a uniformStruct field map.
-
builtinFunction - Attribute a field or an entry-point parameter with a @builtin(<name>), the value the pipeline supplies to the shader.
-
constDeclFunction - Declare a module-level scalar constant together with its typed reference in one call.
-
ConstHandleInterface - The handle constDecl returns: a module-level constant and its typed reference, declared together so the name is written once.
-
FieldSpecInterface - One struct field or entry-point parameter carrying a stage attribute.
-
FixedTypeBuiltinNameType - The WgslBuiltinName ids whose type WGSL fixes, every id except clip_distances, whose array<f32, N> length the author picks.
-
HandleArrayInterface - A fixed-size array<Element, N> uniform field whose element is a struct handle: patterns: arrayOf.
-
hostBlockFunction - Declare a host-owned uniform block: a whole struct of values the host supplies, from one declaration that works on both targets.
-
hostUniformFunction - Declare a host-owned uniform: one scalar, vector or matrix value the host supplies, spelled the way the host's target spells it.
-
ioStructFunction - Declare a struct that crosses a stage boundary, a vertex output, a fragment input, a compute IO record, from one field map.
-
IoStructInterface - The handle ioStruct returns: a struct that crosses a stage boundary, whose fields carry @builtin or @location attributes.
-
locationFunction - Attribute a field or an entry-point parameter with @location(<n>), a slot the pipeline or the previous stage supplies, with an optional @interpolate(<mode>).
-
PlainStructInterface - The handle structDecl returns: a struct declared for something other than a stage's IO boundary, such as a storage-buffer element type (paired with storageBuffer) or a struct nested inside another struct.
-
resourceFunction - Declare a bound resource that is not a struct: a texture or a sampler.
-
ResourceInterface - A single-binding handle: a BindingDecl for module plus a typed access node.
-
storageBufferFunction - Declare a bound array<Element> storage buffer from its element alone.
-
StorageBufferInterface - The handle storageBuffer returns: a bound runtime-length array<Element> storage buffer.
-
structDeclFunction - Declare a plain struct: one that never crosses a stage boundary.
-
TypeArrayInterface - A fixed-size array uniform field with a plain element type: dash_array: arrayOf(vec4fT, 2).
-
uniformStructFunction - Declare a uniform-buffer struct together with its binding, from one field map.
-
UniformStructInterface - The handle uniformStruct returns: a struct and its binding declared together.
-
WGSL_BUILTIN_NAMESConstant - Every WgslBuiltinName value as a runtime array.
-
WGSL_BUILTIN_TYPESConstant - The type each @builtin(<name>) supplies, for every id WGSL gives one fixed type.
-
WgslBuiltinNameType - Every @builtin(<name>) id WGSL defines.