28 auto iter = m_uniformLocationCache.find(name);
29 if (iter != m_uniformLocationCache.end()) {
32 GLint location = glGetUniformLocation(m_shaderProgramID, name.c_str());
34 LOG_WARN(
"Uniform '%s' not found in shader program %u", name.c_str(), m_shaderProgramID);
36 m_uniformLocationCache[name] = location;
2D OpenGL texture object wrapping a GL_TEXTURE_2D handle.
GLuint GetID() const
Returns the underlying OpenGL texture handle (GL_TEXTURE_2D target).