Blender V4.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
12struct Depsgraph;
13struct Image;
14struct ImageUser;
15struct Main;
16struct Material;
17struct Scene;
18
20
22 std::function<std::string(Main *, Scene *, Image *, ImageUser *)> image_fn;
25};
26
27MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph,
28 Material *material,
29 const std::string &material_name,
30 const ExportParams &export_params);
31
32} // namespace blender::nodes::materialx
const Depsgraph * depsgraph
MaterialX::DocumentPtr export_to_materialx(Depsgraph *depsgraph, Material *material, const std::string &material_name, const ExportParams &export_params)
std::function< std::string(Main *, Scene *, Image *, ImageUser *)> image_fn