Variants

Variants

17 members

Feature axes as one family of modules, compiled and linked point by point.

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

AxisValues Type
One point in the axis space: each axis name mapped to one of its declared values.
composeModule Function
Compose a module by filling its placeholder statements.
ComposeOptions Interface
Options for composeModule.
GlLinker Interface
The slice of WebGL2 that compiling and linking a program needs.
GuardDefines Type
How to spell each axis value as a preprocessor define for emitGuarded.
linkVariants Function
Emit, compile and link every variant of a family on a real WebGL2 context.
selectGuardedArm Function
Recover the arm a set of defined macros selects from an emitGuarded source.
validateVariantsWgsl Function
Validate every variant of a family through a real WGSL compiler.
Variant Interface
One built variant.
variantFamily Function
Build a family of shader variants from a typed axis matrix.
VariantFamily Interface
A built family.
VariantFamilySpec Interface
What variantFamily is given.
VariantLinkResult Interface
What happened to one variant.
VariantWgslResult Interface
What happened to one variant on the WGSL side.
WgslCompiled Interface
A module that can report what its compilation produced; a GPUShaderModule satisfies it.
WgslMessage Interface
One compilation message, narrowed to what a gate reports.
WgslValidator Interface
The slice of GPUDevice that validating a WGSL module needs.

Edit this page Report a problem