Loading...
Searching...
No Matches
UsdMtlxUsdTypeInfo Struct Reference

Result of UsdMtlxGetUsdType(). More...

#include <utils.h>

Public Member Functions

 UsdMtlxUsdTypeInfo (SdfValueTypeName valueTypeName, bool valueTypeNameIsExact, TfToken shaderPropertyType, int arraySize=0)
 

Public Attributes

SdfValueTypeName valueTypeName
 The value type name that most closely matches the MaterialX type.
 
TfToken shaderPropertyType
 The exact SdrShaderProperty type name.
 
int arraySize
 If the value type is a fixed-size array/tuple, this will be greater then zero.
 
bool valueTypeNameIsExact
 true iff the value type name is an exact match to the MaterialX type.
 

Detailed Description

Result of UsdMtlxGetUsdType().

Definition at line 115 of file utils.h.

Constructor & Destructor Documentation

◆ UsdMtlxUsdTypeInfo()

UsdMtlxUsdTypeInfo ( SdfValueTypeName  valueTypeName,
bool  valueTypeNameIsExact,
TfToken  shaderPropertyType,
int  arraySize = 0 
)
inline

Definition at line 116 of file utils.h.

Member Data Documentation

◆ arraySize

int arraySize

If the value type is a fixed-size array/tuple, this will be greater then zero.

For "dynamic arrays" this will be zero.

Definition at line 138 of file utils.h.

◆ shaderPropertyType

TfToken shaderPropertyType

The exact SdrShaderProperty type name.

If there is no exact match this is empty.

Definition at line 134 of file utils.h.

◆ valueTypeName

SdfValueTypeName valueTypeName

The value type name that most closely matches the MaterialX type.

If the type isn't recognized this is the invalid value type name. Clients can check for array types by calling IsArray() on this.

Definition at line 130 of file utils.h.

◆ valueTypeNameIsExact

bool valueTypeNameIsExact

true iff the value type name is an exact match to the MaterialX type.

Definition at line 142 of file utils.h.


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