]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Get all blocks for the program before applying them
[libs/gl.git] / source / program.h
index 40a7a33b143a39aa98f779b6e1d68a8285d54a7c..21b38c255e7262d77d01800c2204d27c75c7f0f8 100644 (file)
@@ -51,9 +51,12 @@ public:
                std::string create_flags() const;
        };
 
+       struct UniformBlockInfo;
+
        struct UniformInfo
        {
                std::string name;
+               const UniformBlockInfo *block;
                unsigned location;
                unsigned size;
                unsigned array_stride;
@@ -106,6 +109,7 @@ public:
        void link();
 private:
        static unsigned compute_layout_hash(const std::vector<const UniformInfo *> &);
+       static bool uniform_location_compare(const UniformInfo *, const UniformInfo *);
 public:
        bool is_linked() const { return linked; }
        std::string get_info_log() const;