7#ifndef PXR_IMAGING_HD_MTLX_HDMTLX_H
8#define PXR_IMAGING_HD_MTLX_HDMTLX_H
12#include "pxr/imaging/hdMtlx/api.h"
15#include <unordered_map>
17#include <MaterialXCore/Library.h>
19MATERIALX_NAMESPACE_BEGIN
21 using DocumentPtr = std::shared_ptr<class Document>;
22MATERIALX_NAMESPACE_END
24PXR_NAMESPACE_OPEN_SCOPE
37const MaterialX::FileSearchPath&
43const MaterialX::DocumentPtr&
49HdMtlxConvertToString(
VtValue const& hdParameterValue);
52struct HdMtlxTexturePrimvarData {
53 HdMtlxTexturePrimvarData() =
default;
54 using TextureMap = std::map<std::string, std::set<std::string>>;
55 TextureMap mxHdTextureMap;
56 std::set<SdfPath> hdTextureNodes;
57 std::set<SdfPath> hdPrimvarNodes;
65HdMtlxCreateMtlxDocumentFromHdNetwork(
68 SdfPath const& hdMaterialXNodePath,
70 MaterialX::DocumentPtr
const& libraries,
71 HdMtlxTexturePrimvarData *mxHdData =
nullptr);
76HdMtlxCreateMtlxDocumentFromHdMaterialNetworkInterface(
78 TfToken const& terminalNodeName,
80 MaterialX::DocumentPtr
const& libraries,
81 HdMtlxTexturePrimvarData *mxHdData =
nullptr);
83PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface for querying and mutating a material network.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Container of nodes and top-level terminal connections.
Describes an instance of a node within a network A node contains a (shader) type identifier,...
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.