Skip to main content

Module compiler

Module compiler 

Source
Expand description

Shader graph compiler: topological sort, dead-node elimination, constant folding, common subexpression elimination, and GLSL code generation.

Structs§

CompileOptions
Options controlling the compilation process.
CompiledShader
The result of compiling a shader graph.
ShaderCompiler
The main shader graph compiler.
ShaderVariantCache
A cache for compiled shader variants, keyed by topology hash.
UniformDecl
A uniform variable declaration.
VaryingDecl
A varying variable declaration.

Enums§

CompileError
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.