Skip to main content

uber_program_forced

Function uber_program_forced 

Source
pub fn uber_program_forced() -> bool
Expand description

Whether every strip run is forced through the whole (Uber) strip program via FRUST_ENGINE_UBER_PROGRAM. Cached: read once per process.

The kill switch over paint-class specialisation (crate::gpu::strips::PaintClass): when set, no pass segment is split into class runs, no class program is warmed up or built, and every strip pass draws exactly as the engine did before the classes existed — one pipeline per pass, the whole strip.wgsl program (of the family image_sampler_enabled picks). The escape hatch for a driver that miscompiles a specialisation, and the off-arm of every before/after measurement of it. EngineRenderer::set_uber_program is its programmatic counterpart.