MaterialX 1.38.9
Loading...
Searching...
No Matches
HwLightShaders Class Reference

Hardware light shader user data. More...

#include <HwShaderGenerator.h>

Inheritance diagram for HwLightShaders:
GenUserData

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 ShaderNodeget (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
 

Detailed Description

Hardware light shader user data.


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