MaterialX 1.39.2
|
A type descriptor for MaterialX struct types. More...
#include <TypeDesc.h>
Classes | |
struct | StructMemberTypeDesc |
Public Member Functions | |
StructTypeDesc () noexcept | |
Empty constructor. | |
void | addMember (const string &name, TypeDesc type, const string &defaultValueStr) |
void | setTypeDesc (TypeDesc typedesc) |
TypeDesc | typeDesc () const |
const string & | getName () const |
const vector< StructMemberTypeDesc > & | getMembers () const |
Static Public Member Functions | |
static StructTypeDesc & | get (unsigned int index) |
Return a type description by index. | |
static vector< string > | getStructTypeNames () |
static uint16_t | emplace_back (StructTypeDesc structTypeDesc) |
static void | clear () |
A type descriptor for MaterialX struct types.
All types need to have a type descriptor registered in order for shader generators to know about the type. If the type represented is of basetype=BASETYPE_STRUCT then the type also needs to have an associated StructTypeDesc that describes the members of the struct.