Blender V5.0
source/blender/nodes/shader/materialx/material.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <MaterialXCore/Document.h>
8
9#include <functional>
10#include <string>
11
12struct Depsgraph;
13struct Image;
14struct ImageUser;
15struct Main;
16struct Material;
17struct Scene;
18
20
22 std::string output_node_name;
23 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> image_fn;
26};
27
28MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph,
29 Material *material,
30 const ExportParams &export_params);
31
32} // namespace blender::nodes::materialx
BPy_StructRNA * depsgraph
MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph, Material *material, const ExportParams &export_params)
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> image_fn