1 #ifndef MSP_GL_SL_COMPATIBILITY_H_
2 #define MSP_GL_SL_COMPATIBILITY_H_
11 class DefaultPrecisionGenerator: private TraversingVisitor
15 std::set<std::string> have_default;
16 NodeList<Statement>::iterator insert_point;
19 DefaultPrecisionGenerator();
24 virtual void visit(Block &);
25 virtual void visit(Precision &);
26 virtual void visit(VariableDeclaration &);
29 class PrecisionRemover: private TraversingVisitor
32 std::set<Node *> nodes_to_remove;
38 virtual void visit(Precision &);
39 virtual void visit(VariableDeclaration &);
42 class LegacyConverter: private TraversingVisitor
48 VariableDeclaration *frag_out;
49 NodeList<Statement>::iterator uniform_insert_point;
50 std::set<Node *> nodes_to_remove;
55 virtual void apply(Stage &, const Features &);
58 virtual void visit(Block &);
59 bool check_version(const Version &) const;
60 bool check_extension(bool Features::*) const;
61 bool supports_stage(Stage::Type) const;
62 bool supports_unified_interface_syntax() const;
63 virtual void visit(VariableReference &);
64 virtual void visit(Assignment &);
65 bool supports_unified_sampling_functions() const;
66 virtual void visit(FunctionCall &);
67 bool supports_interface_layouts() const;
68 bool supports_centroid_sampling() const;
69 bool supports_sample_sampling() const;
70 virtual void visit(VariableDeclaration &);
71 bool supports_interface_blocks(const std::string &) const;
72 virtual void visit(InterfaceBlock &);