HDK
|
#include <bindingMap.h>
Public Types | |
typedef TfHashMap< TfToken, int, TfToken::HashFunctor > | BindingMap |
![]() | |
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) |
![]() | |
TfRefBase () | |
TfRefBase (TfRefBase const &) | |
TfRefBase & | operator= (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) |
![]() | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Additional Inherited Members | |
![]() | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
![]() | |
virtual TF_API | ~TfRefBase () |
![]() | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
Definition at line 25 of file bindingMap.h.
Definition at line 27 of file bindingMap.h.
|
inline |
Definition at line 29 of file bindingMap.h.
Definition at line 86 of file bindingMap.h.
|
inline |
Definition at line 60 of file bindingMap.h.
|
inline |
Definition at line 90 of file bindingMap.h.
|
inline |
Definition at line 56 of file bindingMap.h.
GLF_API bool GlfBindingMap::HasUniformBinding | ( | std::string const & | name | ) | const |
Definition at line 74 of file bindingMap.h.
Definition at line 79 of file bindingMap.h.