]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Move the StageType enum inside the Stage struct
[libs/gl.git] / source / glsl / syntax.h
index 549e5e895add03fb41f8b62b3c038a1be01326cb..25b7e4a0450d8d89e940579a87af356a74ee5ac1 100644 (file)
@@ -360,17 +360,17 @@ struct Jump: Statement
        virtual void visit(NodeVisitor &);
 };
 
-enum StageType
-{
-       SHARED,
-       VERTEX,
-       GEOMETRY,
-       FRAGMENT
-};
-
 struct Stage
 {
-       StageType type;
+       enum Type
+       {
+               SHARED,
+               VERTEX,
+               GEOMETRY,
+               FRAGMENT
+       };
+
+       Type type;
        Stage *previous;
        Block content;
        std::map<std::string, VariableDeclaration *> in_variables;
@@ -379,7 +379,7 @@ struct Stage
        Version required_version;
        std::vector<const Extension *> required_extensions;
 
-       Stage(StageType);
+       Stage(Type);
 };
 
 struct Module