MaterialX 1.39.2
Loading...
Searching...
No Matches
StructTypeDesc Class Reference

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 StructTypeDescget (unsigned int index)
 Return a type description by index.
 
static vector< string > getStructTypeNames ()
 
static uint16_t emplace_back (StructTypeDesc structTypeDesc)
 
static void clear ()
 

Detailed Description

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.


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