Skip to main content

Module optimizer

Module optimizer 

Source
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§

OptimizationReport
Report generated after optimization, containing statistics.
OptimizerConfig
Configuration for the shader optimizer.
ShaderOptimizer
The main shader graph optimizer.

Enums§

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