X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;h=b35b8bbe084d73b888efbb7431f3e57b82ca660c;hb=7d145421b050647a4599ac779e634ce2fa60d3ec;hp=e087f27f9d0578bd6e23be8fee0c44e841cd3cb3;hpb=f901fcf41d8ca544085f448227f84bc6f966660d;p=libs%2Fgl.git diff --git a/source/glsl/parser.h b/source/glsl/parser.h index e087f27f..b35b8bbe 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -25,8 +25,10 @@ private: Preprocessor preprocessor; bool allow_stage_change; Module *module; + std::vector imported_modules; Stage *cur_stage; - std::set declared_types; + std::set global_types; + std::set stage_types; std::vector errors; public: @@ -77,6 +79,7 @@ private: RefPtr parse_binary(const RefPtr &, const Operator &); RefPtr parse_ternary(const RefPtr &, const Operator &); RefPtr parse_function_call(const VariableReference &); + void add_type(TypeDeclaration &); RefPtr parse_type_declaration(); RefPtr parse_basic_type_declaration(); RefPtr parse_image_type_declaration();