Class TypeBinder
Syntax
Constructors
TypeBinder()
Declaration
Fields
EnableCodeGeneration
Use the JIT compiler to emit new functions (fast path) for type bindings.
Set to false for platforms which do not support JIT compilation.
Declaration
public static bool EnableCodeGeneration
Field Value
Methods
AddTypeAlias(SdfValueTypeName, SdfValueTypeName)
Declaration
public void AddTypeAlias(SdfValueTypeName alias, SdfValueTypeName target)
Parameters
BindArrayType<ConverterT>(Type, Type, SdfValueTypeName, String)
Binds the specified C# type to the given USD array and scene description (Sdf) types,
looking for ConverterT.ToVtArray(csType) and ConverterT.FromVtArray(vtArrayType).
Declaration
public void BindArrayType<ConverterT>(Type csType, Type vtArrayType, SdfValueTypeName sdfName, string methodNamePrefix = "")
Parameters
Type |
Name |
Description |
Type |
csType |
The C# type to be mapped to USD
|
Type |
vtArrayType |
The USD C++ value type (Vt)
|
SdfValueTypeName |
sdfName |
The USD scene description (Sdf) type
|
String |
methodNamePrefix |
|
Type Parameters
Name |
Description |
ConverterT |
The C# class type providing type conversion rules ToVtArray and FromVtArray.
|
BindNativeType(Type, SdfValueTypeName)
Declaration
public void BindNativeType(Type csType, SdfValueTypeName sdfName)
Parameters
BindType(Type, UsdTypeBinding)
Declaration
public void BindType(Type csType, UsdTypeBinding binding)
Parameters
GetBinding(Type, out UsdTypeBinding)
Declaration
public bool GetBinding(Type key, out UsdTypeBinding binding)
Parameters
Returns
GetReverseBinding(SdfValueTypeName, out UsdTypeBinding)
Get a binding from a USD type
Declaration
public bool GetReverseBinding(SdfValueTypeName key, out UsdTypeBinding binding)
Parameters
Returns
GetReverseBinding(Type, out UsdTypeBinding)
Declaration
public bool GetReverseBinding(Type key, out UsdTypeBinding binding)
Parameters
Returns
RemoveTypeAlias(SdfValueTypeName)
Declaration
public bool RemoveTypeAlias(SdfValueTypeName alias)
Parameters
Returns