X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramsyntax.h;h=86cb6b906181e7686d4230dbbe1b6fbeb9cb1556;hp=c8b0e1f74ed9d1679e8c652ddb1f52f896872df5;hb=fd103d76d7546f7e22aefc18c090a844fc67409f;hpb=009918a51aa309eeceb6c02ecaebe45e8d357033 diff --git a/source/programsyntax.h b/source/programsyntax.h index c8b0e1f7..86cb6b90 100644 --- a/source/programsyntax.h +++ b/source/programsyntax.h @@ -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 in_variables; std::map 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(); };