Blender
V5.3
intern
cycles
bvh
hiprt.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#ifdef WITH_HIPRT
6
7
# include "
bvh/hiprt.h
"
8
9
# include "
scene/mesh.h
"
10
# include "
scene/object.h
"
11
12
# include "
device/hiprt/device_impl.h
"
13
14
CCL_NAMESPACE_BEGIN
15
16
BVHHIPRT::BVHHIPRT(
const
BVHParams
¶ms,
17
const
vector<Geometry *>
&geometry,
18
const
vector<Object *>
&objects,
19
Device
*in_device)
20
:
BVH
(params, geometry, objects),
21
hiprt_geom(
nullptr
),
22
custom_primitive_bound(in_device,
"Custom Primitive Bound"
,
MEM_READ_ONLY
),
23
triangle_index(in_device,
"HIPRT Triangle Index"
,
MEM_READ_ONLY
),
24
vertex_data(in_device,
"vertex_data"
,
MEM_READ_ONLY
),
25
device(in_device)
26
{
27
triangle_mesh = {
nullptr
};
28
custom_prim_aabb = {
nullptr
};
29
}
30
31
BVHHIPRT::~BVHHIPRT()
32
{
33
custom_primitive_bound.free();
34
triangle_index.free();
35
vertex_data.free();
36
device->release_bvh(
this
);
37
}
38
39
CCL_NAMESPACE_END
40
41
#endif
BVHParams
Definition
params.h:57
BVH
Definition
bvh/bvh.h:67
Device
Definition
device/device.h:154
vector
Definition
cycles/util/vector.h:20
MEM_READ_ONLY
@ MEM_READ_ONLY
Definition
cycles/device/memory.h:29
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
device_impl.h
hiprt.h
CCL_NAMESPACE_BEGIN
Definition
python.cpp:41
blender::nullptr
return nullptr
Definition
bmesh_operator_api_inline.hh:212
mesh.h
object.h
Generated on
for Blender by
doxygen
1.18.0