]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.h
Use uniform blocks in generated shaders if supported
[libs/gl.git] / source / programbuilder.h
index 1f9bb846aa0b5729a0ffb3583d5d3e939861b2c1..9860b4683320ad335dda5b6fdc5072b8ef0b5f6f 100644 (file)
@@ -87,6 +87,7 @@ private:
                const VariableDefinition *variable;
                const VariableDefinition *type;
                std::string resolved_name;
+               std::string resolved_block;
                bool fuzzy_space;
                std::string resolved_space;
                bool array_sum;
@@ -141,6 +142,7 @@ public:
 private:
        std::string create_source(const std::list<ShaderVariable *> &, VariableScope) const;
        bool evaluate_flags(const char *) const;
+       static const char *unqualified_name(const char *);
        static MatchType name_match(const char *, const char *, const char ** = 0);
        static bool parse_identifier(const char *, unsigned &, unsigned &);
        static std::vector<std::string> extract_identifiers(const char *);