Blender V5.3
instancer.hh
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 <pxr/base/gf/matrix4d.h>
8#include <pxr/base/vt/array.h>
9#include <pxr/imaging/hd/dataSource.h>
10#include <pxr/usd/sdf/path.h>
11
12#include "BLI_span.hh"
13
14namespace blender::io::hydra {
15
17pxr::HdContainerDataSourceHandle build_instanced_by_data_source(
18 const pxr::SdfPath &instancer_path, const pxr::SdfPath &prototype_root);
19
21pxr::HdContainerDataSourceHandle build_instancer_prim_data_source(
22 Span<pxr::SdfPath> prototypes,
23 Span<pxr::VtIntArray> instance_indices,
24 const pxr::VtMatrix4dArray &transforms);
25
26} // namespace blender::io::hydra
pxr::HdContainerDataSourceHandle build_instanced_by_data_source(const pxr::SdfPath &instancer_path, const pxr::SdfPath &prototype_root)
Definition instancer.cc:21
pxr::HdContainerDataSourceHandle build_instancer_prim_data_source(Span< pxr::SdfPath > prototypes, Span< pxr::VtIntArray > instance_indices, const pxr::VtMatrix4dArray &transforms)
Definition instancer.cc:32