]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Change the naming scheme for the interface block map
[libs/gl.git] / source / glsl / syntax.h
index c8324c87460065a2a0d452d455600d017de8eabb..66fed6e83f058d83b476d777a45cb43947703c72 100644 (file)
@@ -187,6 +187,7 @@ struct MemberAccess: Expression
        std::string member;
 
        VariableDeclaration *declaration;
+       int index;
 
        MemberAccess();
        MemberAccess(const MemberAccess &);
@@ -313,6 +314,8 @@ struct Layout: Node
                std::string name;
                bool has_value;
                int value;
+
+               Qualifier(): has_value(false), value(0) { }
        };
 
        std::vector<Qualifier> qualifiers;