PyMaterialXGenShader.TypeDesc¶
- class TypeDesc¶
Bases:
pybind11_objectA type descriptor for MaterialX data types.
All types need to have a type descriptor registered in order for shader generators to know about the type. It can be used for type comparisons as well as getting more information about the type. Type descriptors for all standard library data types are registered by default and can be accessed from the
Typenamespace, e.g.Type::FLOAT.To register custom types use the macro
TYPEDESC_DEFINE_TYPEto define it in a header and the macroTYPEDESC_REGISTER_TYPEto register it in the type registry. Registration must be done in order to access the type’s name later usinggetName()and to find the type by name usingTypeDesc.get().The class is a POD type of 64-bits and can efficiently be stored and passed by value. Type compare operations and hash operations are done using a precomputed hash value.
Methods
__init__(*args, **kwargs)get(arg0)getBaseType(self)getName(self)getSemantic(self)getSize(self)isAggregate(self)isArray(self)isClosure(self)isFloat2(self)isFloat3(self)isFloat4(self)isScalar(self)Methods¶
- __init__(*args, **kwargs)¶