mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 10:11:10 -06:00
Caching of shader program attribute and uniform IDs from strings.
This commit is contained in:
parent
a952fbc31a
commit
68d5a47121
2 changed files with 30 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue