24 #ifndef PXR_IMAGING_HD_MTLX_HDMTLX_H
25 #define PXR_IMAGING_HD_MTLX_HDMTLX_H
32 #include <unordered_map>
54 const MaterialX::FileSearchPath&
87 SdfPath const& hdMaterialXNodePath,
97 TfToken const& terminalNodeName,
HdMtlxTexturePrimvarData()
HDMTLX_API std::string HdMtlxConvertToString(VtValue const &hdParameterValue)
Converts the HdParameterValue to a string MaterialX can understand.
#define MATERIALX_NAMESPACE_BEGIN
GLsizei const GLchar *const * string
HDMTLX_API const MaterialX::FileSearchPath & HdMtlxSearchPaths()
std::shared_ptr< class Document > DocumentPtr
MaterialX::StringMap mxHdTextureMap
HDMTLX_API MaterialX::DocumentPtr HdMtlxCreateMtlxDocumentFromHdNetwork(HdMaterialNetwork2 const &hdNetwork, HdMaterialNode2 const &hdMaterialXNode, SdfPath const &hdMaterialXNodePath, SdfPath const &materialPath, MaterialX::DocumentPtr const &libraries, HdMtlxTexturePrimvarData *mxHdData=nullptr)
std::set< SdfPath > hdTextureNodes
HDMTLX_API MaterialX::DocumentPtr HdMtlxCreateMtlxDocumentFromHdMaterialNetworkInterface(HdMaterialNetworkInterface *netInterface, TfToken const &terminalNodeName, TfTokenVector const &terminalNodeConnectionNames, MaterialX::DocumentPtr const &libraries, HdMtlxTexturePrimvarData *mxHdData=nullptr)
Implementation that uses the material network interface.
shared_ptr< Document > DocumentPtr
A shared pointer to a Document.
std::vector< TfToken > TfTokenVector
Convenience types.
std::set< SdfPath > hdPrimvarNodes
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
std::unordered_map< string, string > StringMap
An unordered map with strings as both keys and values.
#define MATERIALX_NAMESPACE_END
HDMTLX_API const MaterialX::DocumentPtr & HdMtlxStdLibraries()