|
HDK
|
#include <materialBindingAPI.h>
Public Member Functions | |
| USDSHADE_API | BindingsAtPrim (const UsdPrim &prim, const TfToken &materialPurpose, bool supportLegacyBindings) |
Public Attributes | |
| DirectBindingPtr | directBinding |
| CollectionBindingVector | restrictedPurposeCollBindings |
| CollectionBindingVector | allPurposeCollBindings |
| The ordered list of all-purpose collection bindings on the prim. More... | |
Definition at line 684 of file materialBindingAPI.h.
| USDSHADE_API UsdShadeMaterialBindingAPI::BindingsAtPrim::BindingsAtPrim | ( | const UsdPrim & | prim, |
| const TfToken & | materialPurpose, | ||
| bool | supportLegacyBindings | ||
| ) |
Inspects all the material:binding* properties on the prim and computes direct and collection-based bindings for the given value of materialPurpose.
To provide backward compatibility with old assets not having MaterialBindingAPI applied, supportLegacyBindings is used to determine whether we perform the full computation even if MaterialBindingAPI is not applied to prim.
| CollectionBindingVector UsdShadeMaterialBindingAPI::BindingsAtPrim::allPurposeCollBindings |
The ordered list of all-purpose collection bindings on the prim.
Definition at line 708 of file materialBindingAPI.h.
| DirectBindingPtr UsdShadeMaterialBindingAPI::BindingsAtPrim::directBinding |
If the prim has a restricted purpose direct binding, then it is stored here. If there is no restricted purpose binding on the prim, then the all-purpose direct binding is stored.
Definition at line 701 of file materialBindingAPI.h.
| CollectionBindingVector UsdShadeMaterialBindingAPI::BindingsAtPrim::restrictedPurposeCollBindings |
The ordered list of restricted-purpose collection bindings on the prim.
Definition at line 705 of file materialBindingAPI.h.