Blender V5.3
usd_hook.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include <pxr/usd/usd/common.h>
7#include <pxr/usd/usdShade/material.h>
8
9namespace blender {
10
11struct Depsgraph;
12struct Material;
13struct ReportList;
14
15namespace io::usd {
16
17struct USDExportParams;
19struct USDImportParams;
20class USDStageReader;
21
27
29void call_export_hooks(Depsgraph *depsgraph,
30 const USDHierarchyIterator *iter,
31 ReportList *reports);
32
34void call_material_export_hooks(pxr::UsdStageRefPtr stage,
35 const Material *material,
36 const pxr::UsdShadeMaterial &usd_material,
37 const USDExportParams &export_params,
38 ReportList *reports);
39
41void call_import_hooks(USDStageReader *archive, ReportList *reports);
42
44bool have_material_import_hook(pxr::UsdStageRefPtr stage,
45 const pxr::UsdShadeMaterial &usd_material,
46 const USDImportParams &import_params,
47 ReportList *reports);
48
53bool call_material_import_hooks(pxr::UsdStageRefPtr stage,
54 Material *material,
55 const pxr::UsdShadeMaterial &usd_material,
56 const USDImportParams &import_params,
57 ReportList *reports);
58
59} // namespace io::usd
60} // namespace blender
bool have_material_import_hook(pxr::UsdStageRefPtr stage, const pxr::UsdShadeMaterial &usd_material, const USDImportParams &import_params, ReportList *reports)
Definition usd_hook.cc:652
void call_import_hooks(USDStageReader *archive, ReportList *reports)
Definition usd_hook.cc:619
bool call_material_import_hooks(pxr::UsdStageRefPtr stage, Material *material, const pxr::UsdShadeMaterial &usd_material, const USDImportParams &import_params, ReportList *reports)
Definition usd_hook.cc:667
void call_material_export_hooks(pxr::UsdStageRefPtr stage, const Material *material, const pxr::UsdShadeMaterial &usd_material, const USDExportParams &export_params, ReportList *reports)
Definition usd_hook.cc:604
void call_export_hooks(Depsgraph *depsgraph, const USDHierarchyIterator *iter, ReportList *reports)
Definition usd_hook.cc:594
void register_hook_converters()
Definition usd_hook.cc:299
BMesh Iterators.