Expand description
Shader graph compiler: topological sort, dead-node elimination, constant folding, common subexpression elimination, and GLSL code generation.
Structs§
- Compile
Options - Options controlling the compilation process.
- Compiled
Shader - The result of compiling a shader graph.
- Shader
Compiler - The main shader graph compiler.
- Shader
Variant Cache - A cache for compiled shader variants, keyed by topology hash.
- Uniform
Decl - A uniform variable declaration.
- Varying
Decl - A varying variable declaration.
Enums§
- Compile
Error - Errors that can occur during shader graph compilation.
Functions§
- compile_
graph - Compile a shader graph with default options.
- compile_
graph_ with - Compile a shader graph with custom options.
- generate_
cast - Generate GLSL cast expression from one type to another.
- types_
compatible - Check if a source type can be implicitly cast to a destination type.