Blender V5.3
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
12namespace blender {
13
14struct Depsgraph;
15struct Image;
16struct ImageUser;
17struct Main;
18struct Material;
19struct Scene;
20
21namespace nodes::materialx {
22
24 std::string output_node_name;
25 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> image_fn;
28};
29
30MaterialX::DocumentPtr export_to_materialx(const Depsgraph *depsgraph,
31 const Material *material,
32 const ExportParams &export_params);
33
34} // namespace nodes::materialx
35} // namespace blender
MaterialX::DocumentPtr export_to_materialx(const Depsgraph *depsgraph, const Material *material, const ExportParams &export_params)
BMesh Iterators.
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> image_fn