Skip to main content

strip_class_source

Function strip_class_source 

Source
pub fn strip_class_source(class: PaintClass) -> Cow<'static, str>
Expand description

The strip program of the manual family specialised for class: STRIP with every //#if block whose feature class does not keep, and the IMAGE_SAMPLER arm, blanked out.

PaintClass::Uber keeps every class feature, so the kill switch (FRUST_ENGINE_UBER_PROGRAM) compiles STRIP with only the sampler arm and the directive lines blanked — line for line the program the engine shipped before the classes existed.