Blender V4.5
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
9struct Depsgraph;
10struct Material;
11struct ReportList;
12
13namespace blender::io::usd {
14
15struct USDExportParams;
16struct USDImportParams;
17class USDStageReader;
18
22
24void call_export_hooks(pxr::UsdStageRefPtr stage, Depsgraph *depsgraph, ReportList *reports);
25
27void call_material_export_hooks(pxr::UsdStageRefPtr stage,
28 Material *material,
29 const pxr::UsdShadeMaterial &usd_material,
30 const USDExportParams &export_params,
32
35
37bool have_material_import_hook(pxr::UsdStageRefPtr stage,
38 const pxr::UsdShadeMaterial &usd_material,
39 const USDImportParams &import_params,
41
44bool call_material_import_hooks(pxr::UsdStageRefPtr stage,
45 Material *material,
46 const pxr::UsdShadeMaterial &usd_material,
47 const USDImportParams &import_params,
49
50} // namespace blender::io::usd
struct Material Material
struct ReportList ReportList
ReportList * reports
Definition WM_types.hh:1025
BPy_StructRNA * depsgraph
bool have_material_import_hook(pxr::UsdStageRefPtr stage, const pxr::UsdShadeMaterial &usd_material, const USDImportParams &import_params, ReportList *reports)
Definition usd_hook.cc:645
void call_import_hooks(USDStageReader *archive, ReportList *reports)
Definition usd_hook.cc:608
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:660
void call_material_export_hooks(pxr::UsdStageRefPtr stage, Material *material, const pxr::UsdShadeMaterial &usd_material, const USDExportParams &export_params, ReportList *reports)
Definition usd_hook.cc:593
void call_export_hooks(pxr::UsdStageRefPtr stage, Depsgraph *depsgraph, ReportList *reports)
Definition usd_hook.cc:583
void register_hook_converters()
Definition usd_hook.cc:291