Loading...
Searching...
No Matches
bakeMaterialX.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_USD_IMAGING_BIN_USD_BAKE_MTLX_BAKE_MATERIALX_H
9#define PXR_USD_IMAGING_BIN_USD_BAKE_MTLX_BAKE_MATERIALX_H
10
11#include "pxr/pxr.h"
12#include "pxr/usdImaging/bin/usdBakeMtlx/api.h"
13
14#include "pxr/imaging/hd/material.h"
16
17#include <MaterialXCore/Library.h>
18
20#include <string>
21
22MATERIALX_NAMESPACE_BEGIN
23 using FilePathVec = std::vector<class FilePath>;
24 class FileSearchPath;
25MATERIALX_NAMESPACE_END
26
27PXR_NAMESPACE_OPEN_SCOPE
28
30
33USDBAKEMTLX_API
34UsdStageRefPtr UsdBakeMtlxReadDocToStage(std::string const &pathname,
35 UsdStageRefPtr stage);
36
41USDBAKEMTLX_API
42std::string UsdBakeMtlxBakeMaterial(
43 UsdShadeMaterial const& mtlxMaterial,
44 std::string const& bakedMtlxDir,
45 int textureWidth,
46 int textureHeight,
47 bool bakeHdr,
48 bool bakeAverage);
49
50
51PXR_NAMESPACE_CLOSE_SCOPE
52
53#endif // PXR_USD_IMAGING_BIN_USD_BAKE_MTLX_BAKE_MATERIALX_H
A Material provides a container into which multiple "render contexts" can add data that defines a "sh...
Definition: material.h:96
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_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:72