]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.h
Improve handling of types in GLSL parser
[libs/gl.git] / source / glsl / parser.h
index e087f27f9d0578bd6e23be8fee0c44e841cd3cb3..a935356ecd1339e68e6bb82f2752a5d47e6a25fb 100644 (file)
@@ -25,8 +25,10 @@ private:
        Preprocessor preprocessor;
        bool allow_stage_change;
        Module *module;
+       std::vector<const Module *> imported_modules;
        Stage *cur_stage;
-       std::set<std::string> declared_types;
+       std::set<std::string> global_types;
+       std::set<std::string> stage_types;
        std::vector<std::string> errors;
 
 public: