]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programsyntax.h
Refactor module and stage management
[libs/gl.git] / source / programsyntax.h
index 86cb6b906181e7686d4230dbbe1b6fbeb9cb1556..c645a60a442ec91a616060f11c55327e9a34d4f6 100644 (file)
@@ -312,7 +312,6 @@ enum StageType
 struct Stage
 {
        StageType type;
-       bool present;
        Stage *previous;
        ProgramSyntax::Block content;
        std::map<std::string, VariableDeclaration *> in_variables;
@@ -324,9 +323,7 @@ struct Stage
 struct Module
 {
        Stage shared;
-       Stage vertex_stage;
-       Stage geometry_stage;
-       Stage fragment_stage;
+       std::list<Stage> stages;
 
        Module();
 };