Caching of shader program attribute and uniform IDs from strings.

This commit is contained in:
Vojtech Bubnik 2021-12-06 11:45:02 +01:00
parent a952fbc31a
commit 68d5a47121
2 changed files with 30 additions and 2 deletions

View file

@ -29,6 +29,8 @@ public:
private:
std::string m_name;
unsigned int m_id{ 0 };
std::vector<std::pair<std::string, int>> m_attrib_location_cache;
std::vector<std::pair<std::string, int>> m_uniform_location_cache;
public:
~GLShaderProgram();