HDK
|
#include <HwShaderGenerator.h>
Public Member Functions | |
void | bind (unsigned int type, ShaderNodePtr shader) |
Bind a light shader to a light type id. More... | |
void | unbind (unsigned int type) |
Unbind a light shader previously bound to a light type id. More... | |
void | clear () |
Clear all light shaders previously bound. More... | |
const ShaderNode * | get (unsigned int type) const |
const std::unordered_map < unsigned int, ShaderNodePtr > & | get () const |
Return the map of bound light shaders. More... | |
Public Member Functions inherited from GenUserData | |
virtual | ~GenUserData () |
GenUserDataPtr | getSelf () |
Return a shared pointer for this object. More... | |
ConstGenUserDataPtr | getSelf () const |
Return a shared pointer for this object. More... | |
template<class T > | |
shared_ptr< T > | asA () |
Return this object cast to a templated type. More... | |
template<class T > | |
shared_ptr< const T > | asA () const |
Return this object cast to a templated type. More... | |
Static Public Member Functions | |
static HwLightShadersPtr | create () |
Create and return a new instance. More... | |
Protected Attributes | |
std::unordered_map< unsigned int, ShaderNodePtr > | _shaders |
Additional Inherited Members | |
Protected Member Functions inherited from GenUserData | |
GenUserData () | |
Hardware light shader user data
Definition at line 243 of file HwShaderGenerator.h.
|
inline |
Bind a light shader to a light type id.
Definition at line 253 of file HwShaderGenerator.h.
|
inline |
Clear all light shaders previously bound.
Definition at line 265 of file HwShaderGenerator.h.
|
inlinestatic |
Create and return a new instance.
Definition at line 247 of file HwShaderGenerator.h.
|
inline |
Return the light shader bound to the given light type, or nullptr if not light shader is bound to this type.
Definition at line 272 of file HwShaderGenerator.h.
|
inline |
Return the map of bound light shaders.
Definition at line 279 of file HwShaderGenerator.h.
Unbind a light shader previously bound to a light type id.
Definition at line 259 of file HwShaderGenerator.h.
|
protected |
Definition at line 285 of file HwShaderGenerator.h.