X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect.h;h=d812db0ad2f900be6a9c7289fc5466d507758f48;hb=abd6d031918db487e0724218dc604d4a51e5f650;hp=67e64238beb2bdc590f75ed83327b045d3e80c29;hpb=9a945c3c5c62e0250015e69b5b091a849bd11c10;p=movit diff --git a/effect.h b/effect.h index 67e6423..d812db0 100644 --- a/effect.h +++ b/effect.h @@ -59,7 +59,9 @@ struct Uniform { const T *value; // Owner by the effect. size_t num_values; // Number of elements; for arrays only. _Not_ the vector length. std::string prefix; // Filled in only after phases have been constructed. - GLint location; // Filled in only after phases have been constructed. -1 if no location. + GLuint location; // Filled in only after phases have been constructed. GL_INVALID_INDEX if no location, or if using UBOs. + GLint ubo_offset; // Same. -1 if no location or if not using UBOs. + GLint ubo_num_elem; // Same. 0 if no location or if not using UBOs. }; class Effect {