Loading...
Searching...
No Matches
reader.h
1//
2// Copyright 2018 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USDMTLX_READER_H
8#define PXR_USD_USDMTLX_READER_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/usdMtlx/api.h"
12#include "pxr/usd/sdf/path.h"
14#include <MaterialXCore/Document.h>
15
16PXR_NAMESPACE_OPEN_SCOPE
17
19
29USDMTLX_API
30void UsdMtlxRead(const MaterialX::ConstDocumentPtr& mtlx,
31 const UsdStagePtr& stage,
32 const SdfPath& internalPath = SdfPath("/MaterialX"),
33 const SdfPath& externalPath = SdfPath("/ModelRoot"));
34
40USDMTLX_API
41void UsdMtlxReadNodeGraphs(const MaterialX::ConstDocumentPtr& mtlx,
42 const UsdStagePtr& stage,
43 const SdfPath& internalPath = SdfPath("/MaterialX"));
44
45PXR_NAMESPACE_CLOSE_SCOPE
46
47#endif // PXR_USD_USDMTLX_READER_H
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:136
Standard pointer typedefs.
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
Definition: declarePtrs.h:45