25 #ifndef PXR_USD_USDMTLX_UTILS_H
26 #define PXR_USD_USDMTLX_UTILS_H
40 #define USD_MTLX_TOKENS \
41 ((DefaultOutputName, "out"))
104 bool* implicitDefault =
nullptr);
121 : valueTypeName(valueTypeName)
122 , shaderPropertyType(shaderPropertyType)
124 , valueTypeNameIsExact(valueTypeNameIsExact)
158 bool getDefaultValue =
false);
176 std::vector<std::string>
181 #endif // PXR_USD_USDMTLX_UTILS_H
shared_ptr< const Element > ConstElementPtr
A shared pointer to a const Element.
USDMTLX_API const NdrStringVec & UsdMtlxCustomSearchPaths()
USDMTLX_API MaterialX::ConstDocumentPtr UsdMtlxGetDocumentFromString(const std::string &mtlxXml)
USDMTLX_API MaterialX::DocumentPtr UsdMtlxReadDocument(const std::string &resolvedPath)
shared_ptr< const InterfaceElement > ConstInterfaceElementPtr
A shared pointer to a const InterfaceElement.
GLsizei const GLchar *const * string
USDMTLX_API const NdrStringVec & UsdMtlxStandardLibraryPaths()
USDMTLX_API MaterialX::ConstDocumentPtr UsdMtlxGetDocument(const std::string &resolvedUri)
USDMTLX_API NdrVersion UsdMtlxGetVersion(const MaterialX::ConstInterfaceElementPtr &mtlx, bool *implicitDefault=nullptr)
SdfValueTypeName valueTypeName
USDMTLX_API const std::string & UsdMtlxGetSourceURI(const MaterialX::ConstElementPtr &element)
TF_DECLARE_PUBLIC_TOKENS(UsdMtlxTokens, USDMTLX_API, USD_MTLX_TOKENS)
std::vector< std::string > NdrStringVec
shared_ptr< Document > DocumentPtr
A shared pointer to a Document.
USDMTLX_API UsdMtlxUsdTypeInfo UsdMtlxGetUsdType(const std::string &mtlxTypeName)
Convert a (standard) MaterialX type name.
TfToken shaderPropertyType
USDMTLX_API const NdrStringVec & UsdMtlxSearchPaths()
USDMTLX_API std::vector< std::string > UsdMtlxSplitStringArray(const std::string &s)
USDMTLX_API NdrStringVec UsdMtlxStandardFileExtensions()
Return the MaterialX standard file extensions.
bool valueTypeNameIsExact
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GLenum GLsizei GLsizei GLint * values
Result of UsdMtlxGetUsdType().
#define PXR_NAMESPACE_CLOSE_SCOPE
shared_ptr< const Document > ConstDocumentPtr
A shared pointer to a const Document.
USDMTLX_API VtValue UsdMtlxGetUsdValue(const MaterialX::ConstElementPtr &mtlx, bool getDefaultValue=false)
UsdMtlxUsdTypeInfo(SdfValueTypeName valueTypeName, bool valueTypeNameIsExact, TfToken shaderPropertyType, int arraySize=0)
USDMTLX_API std::vector< VtValue > UsdMtlxGetPackedUsdValues(const std::string &values, const std::string &type)