]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Add legacy conversion for binding layout qualifiers
[libs/gl.git] / source / glsl / syntax.h
index f7c8ed29cedc09229be11f5ce774d78f67107ee3..c8324c87460065a2a0d452d455600d017de8eabb 100644 (file)
@@ -429,6 +429,7 @@ struct VariableDeclaration: Statement
 
 struct InterfaceBlock: Statement
 {
+       NodePtr<Layout> layout;
        std::string interface;
        std::string block_name;
        NodePtr<Block> members;
@@ -531,6 +532,8 @@ struct Stage
        std::map<std::string, InterfaceBlock *> interface_blocks;
        std::map<std::string, FunctionDeclaration *> functions;
        std::map<std::string, unsigned> locations;
+       std::map<std::string, unsigned> texture_bindings;
+       std::map<std::string, unsigned> uniform_block_bindings;
        Features required_features;
        std::vector<Diagnostic> diagnostics;
 
@@ -550,6 +553,9 @@ struct Module
 
 std::string get_unused_variable_name(const Block &, const std::string &);
 
+bool is_same_type(const TypeDeclaration &, const TypeDeclaration &);
+int get_layout_value(const Layout &, const std::string &, int = -1);
+
 } // namespace SL
 } // namespace GL
 } // namespace Msp