|
HDK
|
#include <ShaderNode.h>
Inheritance diagram for ShaderMetadataRegistry:Public Member Functions | |
| void | addMetadata (const string &name, TypeDesc type, ValuePtr value=nullptr) |
| const ShaderMetadata * | findMetadata (const string &name) const |
| ShaderMetadata * | findMetadata (const string &name) |
| const ShaderMetadataVec & | getAllMetadata () const |
| Return all entries in the registry. More... | |
| void | clear () |
| Clear all entries in the registry. 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 Attributes | |
| static const string | USER_DATA_NAME |
Protected Attributes | |
| vector< ShaderMetadata > | _entries |
| std::unordered_map< string, size_t > | _entryIndex |
Additional Inherited Members | |
Protected Member Functions inherited from GenUserData | |
| GenUserData () | |
A registry for metadata that will be exported to the generated shader if found on nodes and inputs during shader generation.
Definition at line 58 of file ShaderNode.h.
|
inline |
Add a new metadata entry to the registry. The entry contains the name and data type for the metadata.
Definition at line 66 of file ShaderNode.h.
|
inline |
Clear all entries in the registry.
Definition at line 98 of file ShaderNode.h.
|
inline |
Return the metadata registered for the given name, or nullptr if no such entry is found.
Definition at line 77 of file ShaderNode.h.
|
inline |
Return the metadata registered for the given name, or nullptr if no such entry is found.
Definition at line 85 of file ShaderNode.h.
|
inline |
Return all entries in the registry.
Definition at line 92 of file ShaderNode.h.
|
protected |
Definition at line 105 of file ShaderNode.h.
|
protected |
Definition at line 106 of file ShaderNode.h.
|
static |
Definition at line 61 of file ShaderNode.h.