24 #ifndef USD_SHD_UTILS_H
25 #define USD_SHD_UTILS_H
28 #include "pxr/usd/usdShade/api.h"
30 #include "pxr/base/tf/token.h"
35 PXR_NAMESPACE_OPEN_SCOPE
44 enum class UsdShadeAttributeType {
63 UsdShadeAttributeType sourceType);
67 static std::pair<TfToken, UsdShadeAttributeType>
75 const UsdShadeAttributeType type);
88 PXR_NAMESPACE_CLOSE_SCOPE
static USDSHADE_API bool WriteNewEncoding()
Whether the env-setting that enables the writing of new-style encoding of shading networks is set to ...
Token for efficient comparison, assignment, and hashing of known strings.
This class contains a set of utility functions used when authoring and querying shading networks...
static USDSHADE_API std::string GetPrefixForAttributeType(UsdShadeAttributeType sourceType)
Returns the namespace prefix of the USD attribute associated with the given shading attribute type...
static USDSHADE_API bool ReadOldEncoding()
Whether the env-setting that enables the reading of old-style encoding of shading networks is set to ...
static USDSHADE_API TfToken GetFullName(const TfToken &baseName, const UsdShadeAttributeType type)
Returns the full shading attribute name given the basename and the type.
static USDSHADE_API std::pair< TfToken, UsdShadeAttributeType > GetBaseNameAndType(const TfToken &fullName)
Given the full name of a shading property, returns it's base name and type.