HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlfBindingMap Class Reference

#include <bindingMap.h>

+ Inheritance diagram for GlfBindingMap:

Public Types

typedef TfHashMap< TfToken,
int, TfToken::HashFunctor
BindingMap
 
- Public Types inherited from TfRefBase
typedef void(* UniqueChangedFuncPtr )(TfRefBase const *, bool)
 

Public Member Functions

 GlfBindingMap ()
 
GLF_API int GetSamplerUnit (std::string const &name)
 
GLF_API int GetSamplerUnit (TfToken const &name)
 
GLF_API int GetAttributeIndex (std::string const &name)
 
GLF_API int GetAttributeIndex (TfToken const &name)
 
GLF_API int GetUniformBinding (std::string const &name)
 
GLF_API int GetUniformBinding (TfToken const &name)
 
GLF_API bool HasUniformBinding (std::string const &name) const
 
GLF_API bool HasUniformBinding (TfToken const &name) const
 
int GetNumSamplerBindings () const
 
void ClearAttribBindings ()
 
void AddAttribBinding (TfToken const &name, int location)
 
BindingMap const & GetAttributeBindings () const
 
GLF_API void AssignSamplerUnitsToProgram (GLuint program)
 
GLF_API void AssignUniformBindingsToProgram (GLuint program)
 
GLF_API void AddCustomBindings (GLuint program)
 
GLF_API void Debug () const
 
Sampler and UBO Bindings

Sampler units and uniform block bindings are reset and will be assigned sequentially starting from the specified baseIndex. This allows other subsystems to claim sampler units and uniform block bindings before additional indices are assigned by this binding map.

void ResetSamplerBindings (int baseIndex)
 
void ResetUniformBindings (int baseIndex)
 
- Public Member Functions inherited from TfRefBase
 TfRefBase ()
 
 TfRefBase (TfRefBase const &)
 
TfRefBaseoperator= (TfRefBase const &)
 
size_t GetCurrentCount () const
 Return the current reference count of this object. More...
 
bool IsUnique () const
 Return true if only one TfRefPtr points to this object. More...
 
void SetShouldInvokeUniqueChangedListener (bool shouldCall)
 
- Public Member Functions inherited from TfWeakBase
 TfWeakBase ()
 
 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void const * GetUniqueIdentifier () const
 

Additional Inherited Members

- Static Public Member Functions inherited from TfRefBase
static TF_API void SetUniqueChangedListener (UniqueChangedListener listener)
 
- Protected Member Functions inherited from TfRefBase
virtual TF_API ~TfRefBase ()
 
- Protected Member Functions inherited from TfWeakBase
 ~TfWeakBase ()
 
TfRefPtr< Tf_Remnant_Register () const
 
template<class T >
TfRefPtr< Tf_Remnant_Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Detailed Description

Definition at line 42 of file bindingMap.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GlfBindingMap::GlfBindingMap ( )
inline

Definition at line 46 of file bindingMap.h.

Member Function Documentation

void GlfBindingMap::AddAttribBinding ( TfToken const &  name,
int  location 
)
inline

Definition at line 103 of file bindingMap.h.

GLF_API void GlfBindingMap::AddCustomBindings ( GLuint  program)
GLF_API void GlfBindingMap::AssignSamplerUnitsToProgram ( GLuint  program)
GLF_API void GlfBindingMap::AssignUniformBindingsToProgram ( GLuint  program)
void GlfBindingMap::ClearAttribBindings ( )
inline

Definition at line 77 of file bindingMap.h.

GLF_API void GlfBindingMap::Debug ( ) const
BindingMap const& GlfBindingMap::GetAttributeBindings ( ) const
inline

Definition at line 107 of file bindingMap.h.

GLF_API int GlfBindingMap::GetAttributeIndex ( std::string const &  name)
GLF_API int GlfBindingMap::GetAttributeIndex ( TfToken const &  name)
int GlfBindingMap::GetNumSamplerBindings ( ) const
inline

Definition at line 73 of file bindingMap.h.

GLF_API int GlfBindingMap::GetSamplerUnit ( std::string const &  name)
GLF_API int GlfBindingMap::GetSamplerUnit ( TfToken const &  name)
GLF_API int GlfBindingMap::GetUniformBinding ( std::string const &  name)
GLF_API int GlfBindingMap::GetUniformBinding ( TfToken const &  name)
GLF_API bool GlfBindingMap::HasUniformBinding ( std::string const &  name) const
GLF_API bool GlfBindingMap::HasUniformBinding ( TfToken const &  name) const
void GlfBindingMap::ResetSamplerBindings ( int  baseIndex)
inline

Definition at line 91 of file bindingMap.h.

void GlfBindingMap::ResetUniformBindings ( int  baseIndex)
inline

Definition at line 96 of file bindingMap.h.


The documentation for this class was generated from the following file: