X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=e8487e09d001bfc34acb4f0caab85f21784faf60;hb=e1be82a4dfce8d90358c506f65be09da4dc9d5ec;hp=9d5b8b2b6522f4dcc1d19038295abf3d40583e2a;hpb=58c5647c775e38dd08a64ad435dfe0673a62fcd1;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 9d5b8b2b..e8487e09 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -82,7 +82,11 @@ public: int get_uniform_location(const std::string &) const; int get_uniform_location(Tag) const; int get_uniform_binding(Tag) const; + bool uses_uniform_block_binding(int b) const { return uses_binding(b|ReflectData::UNIFORM_BLOCK_BINDING); } + bool uses_texture_binding(unsigned b) const { return uses_binding(b|ReflectData::TEXTURE_BINDING); } +private: bool uses_binding(int) const; +public: const std::vector &get_attributes() const { return reflect_data.attributes; } const ReflectData::AttributeInfo &get_attribute_info(const std::string &) const; int get_attribute_location(const std::string &) const;