24 #ifndef PXR_IMAGING_GLF_BINDING_MAP_H
25 #define PXR_IMAGING_GLF_BINDING_MAP_H
47 : _samplerBindingBaseIndex(0)
48 , _uniformBindingBaseIndex(0)
74 return (
int)_samplerBindings.size();
78 _attribBindings.clear();
92 _samplerBindings.clear();
93 _samplerBindingBaseIndex = baseIndex;
97 _uniformBindings.clear();
98 _uniformBindingBaseIndex = baseIndex;
108 return _attribBindings;
132 int _samplerBindingBaseIndex;
133 int _uniformBindingBaseIndex;
139 #endif // PXR_IMAGING_GLF_BINDING_MAP_H
GLF_API void AssignUniformBindingsToProgram(GLuint program)
GLF_API int GetAttributeIndex(std::string const &name)
void AddAttribBinding(TfToken const &name, int location)
GLsizei const GLchar *const * string
GLF_API bool HasUniformBinding(std::string const &name) const
TfHashMap< TfToken, int, TfToken::HashFunctor > BindingMap
GLF_API void AddCustomBindings(GLuint program)
GLF_API int GetUniformBinding(std::string const &name)
GLF_API int GetSamplerUnit(std::string const &name)
GLuint const GLchar * name
BindingMap const & GetAttributeBindings() const
GLF_API void AssignSamplerUnitsToProgram(GLuint program)
GLF_API void Debug() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
void ResetSamplerBindings(int baseIndex)
#define PXR_NAMESPACE_CLOSE_SCOPE
int GetNumSamplerBindings() const
GLbitfield GLuint program
void ClearAttribBindings()
void ResetUniformBindings(int baseIndex)