void DefaultPrecisionGenerator::apply(Stage &s)
{
stage = &s;
- visit(s.content);
+ s.content.visit(*this);
}
void DefaultPrecisionGenerator::visit(Block &block)
void PrecisionRemover::apply(Stage &stage)
{
- visit(stage.content);
+ stage.content.visit(*this);
NodeRemover().apply(stage, nodes_to_remove);
}
features = feat;
if(!supports_stage(s.type))
throw unsupported_shader(format("Stage %s is not supported", Stage::get_stage_name(s.type)));
- visit(s.content);
+ s.content.visit(*this);
}
void LegacyConverter::visit(Block &block)