X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogramsyntax.h;h=2f9f1fc08a50f47eb3a8fc6f4757217cb39f0b09;hb=74bd3813b9744550c9ac5980588e561835b616d9;hp=9545760c47b31bd8cfa98f61ee59ef626d2d851c;hpb=a0caabaed3aeb8947133d78986bfb4ae5ae3c893;p=libs%2Fgl.git diff --git a/source/programsyntax.h b/source/programsyntax.h index 9545760c..2f9f1fc0 100644 --- a/source/programsyntax.h +++ b/source/programsyntax.h @@ -5,6 +5,7 @@ #include #include #include +#include "extension.h" namespace Msp { namespace GL { @@ -52,6 +53,7 @@ public: struct StructDeclaration; struct VariableDeclaration; +struct FunctionDeclaration; struct Block: Node { @@ -145,6 +147,7 @@ struct Assignment: BinaryExpression struct FunctionCall: Expression { std::string name; + FunctionDeclaration *declaration; bool constructor; std::vector > arguments; @@ -341,6 +344,7 @@ struct Stage ProgramSyntax::Block content; std::map in_variables; std::map out_variables; + Version required_version; Stage(StageType); };