]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programsyntax.h
Rename ProgramSyntax::Context to Stage
[libs/gl.git] / source / programsyntax.h
index c8b0e1f74ed9d1679e8c652ddb1f52f896872df5..86cb6b906181e7686d4230dbbe1b6fbeb9cb1556 100644 (file)
@@ -301,32 +301,32 @@ struct TraversingVisitor: NodeVisitor
        virtual void visit(Return &);
 };
 
-enum ContextType
+enum StageType
 {
-       GLOBAL,
+       SHARED,
        VERTEX,
        GEOMETRY,
        FRAGMENT
 };
 
-struct Context
+struct Stage
 {
-       ContextType type;
+       StageType type;
        bool present;
-       Context *previous;
+       Stage *previous;
        ProgramSyntax::Block content;
        std::map<std::string, VariableDeclaration *> in_variables;
        std::map<std::string, VariableDeclaration *> out_variables;
 
-       Context(ContextType);
+       Stage(StageType);
 };
 
 struct Module
 {
-       Context global_context;
-       Context vertex_context;
-       Context geometry_context;
-       Context fragment_context;
+       Stage shared;
+       Stage vertex_stage;
+       Stage geometry_stage;
+       Stage fragment_stage;
 
        Module();
 };