]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Slightly refactor layout qualifiers in the GLSL parser
[libs/gl.git] / source / glsl / syntax.h
index 3fb848d2ceb81a91fdc07ab19f0e072b0b71010c..70b1bb39f3547d2f3fb838fe8359d5aa979b5e1c 100644 (file)
@@ -242,9 +242,9 @@ struct Layout: Node
 {
        struct Qualifier
        {
-               // TODO the standard calls this name, not identifier
-               std::string identifier;
-               std::string value;
+               std::string name;
+               bool has_value;
+               int value;
        };
 
        std::vector<Qualifier> qualifiers;