X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=fb7fdddef91c735cd50cf3375923b8613d417635;hb=24b24e2203c776aacd9744bb947f5cf47b03d328;hp=6301edbe2c6e23ded094519e38f30db842ebbb55;hpb=b7f46931a9878b2fd7ec863d520dc22ac89c0baf;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 6301edbe..fb7fddde 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -4,7 +4,6 @@ #include #include #include -#include "gl.h" #include "module.h" #include "reflectdata.h" #include "vertexformat.h" @@ -63,10 +62,22 @@ private: std::map 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 uniform_calls; std::string debug_name; public: