|
MaterialX 1.38.2
|
Hardware light shader user data. More...
#include <HwShaderGenerator.h>
Public Member Functions | |
| void | bind (unsigned int type, ShaderNodePtr shader) |
| Bind a light shader to a light type id. | |
| void | unbind (unsigned int type) |
| Unbind a light shader previously bound to a light type id. | |
| void | clear () |
| Clear all light shaders previously bound. | |
| const ShaderNode * | get (unsigned int type) const |
| Return the light shader bound to the given light type, or nullptr if not light shader is bound to this type. | |
| const std::unordered_map< unsigned int, ShaderNodePtr > & | get () const |
| Return the map of bound light shaders. | |
Public Member Functions inherited from GenUserData | |
| GenUserDataPtr | getSelf () |
| Return a shared pointer for this object. | |
| ConstGenUserDataPtr | getSelf () const |
| Return a shared pointer for this object. | |
| template<class T > | |
| shared_ptr< T > | asA () |
| Return this object cast to a templated type. | |
| template<class T > | |
| shared_ptr< const T > | asA () const |
| Return this object cast to a templated type. | |
Static Public Member Functions | |
| static HwLightShadersPtr | create () |
| Create and return a new instance. | |
Protected Attributes | |
| std::unordered_map< unsigned int, ShaderNodePtr > | _shaders |
Hardware light shader user data.