Expand description
Advanced optimization passes for shader graphs: type inference, algebraic simplification, redundant cast removal, loop detection, node merging, instruction count estimation, and shader variant caching.
Structs§
- Optimization
Report - Report generated after optimization, containing statistics.
- Optimizer
Config - Configuration for the shader optimizer.
- Shader
Optimizer - The main shader graph optimizer.
Enums§
- Optimization
Pass - Individual optimization passes that can be applied to a shader graph.
Functions§
- estimate_
instruction_ count - Estimate the instruction count of a shader graph.
- has_
cycles - Check if a graph has cycles.
- optimize_
graph - Optimize a shader graph with default settings.