]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Store default-block uniform data in a memory block
[libs/gl.git] / source / core / program.h
index 6301edbe2c6e23ded094519e38f30db842ebbb55..b384defe90fa0d7904133a37bd3f66429c1f88fa 100644 (file)
@@ -63,10 +63,22 @@ private:
                std::map<unsigned, int> spec_values;
        };
 
+       struct UniformCall
+       {
+               using FuncPtr = void (*)(unsigned, unsigned, const void *);
+
+               unsigned location;
+               unsigned size;
+               FuncPtr func;
+
+               UniformCall(unsigned l, unsigned s, FuncPtr f): location(l), size(s), func(f) { }
+       };
+
        unsigned id;
        unsigned stage_ids[MAX_STAGES];
        bool linked;
        ReflectData reflect_data;
+       std::vector<UniformCall> uniform_calls;
        std::string debug_name;
 
 public: