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