Available on
wgpu_core
or naga
only.Expand description
Backend functions that export shader Module
s into binary and text formats.
Modules
- dot
dot-out
Backend for DOT (Graphviz). - glsl
glsl-out
Backend for GLSL (OpenGL Shading Language). - hlsl
hlsl-out
Backend for HLSL (High-Level Shading Language). - msl
msl-out
Backend for MSL (Metal Shading Language). - pipeline_constants
hlsl-out
ormsl-out
orspv-out
orglsl-out
- spv
spv-out
Backend for SPIR-V (Standard Portable Intermediate Representation). - wgsl
wgsl-out
Backend for WGSL (WebGPU Shading Language).
Structs
- Helper structure that stores data needed when writing the function
- Indentation level.
- Ray flags, for a
RayDesc
’sflags
field.
Enums
- Whether we’re generating an entry point or a regular function.
- The intersection test to use for ray queries.
Constants
- Prefix used for baking.
- Names of vector components.
- Indent for backends.
Functions
- Helper function that returns the string corresponding to the
BinaryOperator
Type Aliases
- Expressions that need baking.
- Specifies the values of pipeline-overridable constants in the shader module.