Language reference
The language reference for files that start with "use typeshade". It lists 325 names from the compiler's language service at commit af54ddad5, the same table the editor uses for hover information.
This reference is for shader authors. Host applications and the fn() builder use the compiler API reference.
- Types 67 names
- The scalar, vector, matrix and memory types a declaration names.
- Attributes 9 names
- The attributes written with
@: an entry’s stage, a kernel function’s workgroup size and the decorated form of the attribute types. - Builtin values 18 names
- The ids
builtin<N>names, with the stage each belongs to. - Functions 188 names
- The functions a shader calls, by family, with the text each backend writes.
- Constants 2 names
- The compile-time literals the compiler inlines, and
discard. - Math members 41 names
- The
Mathmembers a shader may reach, each routed to a builtin or a literal. - Error codes 87 codes
- The code on a diagnostic, what it means and how to fix it.
- Design rules 137 rules
- What the language may contain and how it may change, one rule per page.
Reading an entry
An entry holds the declaration the editor loads for that name, the compiler's sentence about it, and for a builtin function the WGSL and the GLSL ES 3.00 text each backend writes. The builtin table is the scanning view over the same calls, four columns wide.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.