X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=b384defe90fa0d7904133a37bd3f66429c1f88fa;hp=6301edbe2c6e23ded094519e38f30db842ebbb55;hb=8366f8951984aa436938b1bb18a57067ff2260c1;hpb=1a3eb3759708f41f0d57a271f2953e4de0506858 diff --git a/source/core/program.h b/source/core/program.h index 6301edbe..b384defe 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -63,10 +63,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: