Blender V5.3
hiprt.h
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# pragma once
8
9# include "bvh/bvh.h"
10# include "bvh/params.h"
11# include "device/memory.h"
12
13# include <hiprt/hiprt_types.h>
14
16
17class BVHHIPRT : public BVH {
18 public:
19 friend class HIPDevice;
20
21 bool is_tlas()
22 {
23 return params.top_level;
24 }
25
26 hiprtGeometry hiprt_geom;
27 hiprtTriangleMeshPrimitive triangle_mesh;
28 hiprtAABBListPrimitive custom_prim_aabb;
29 hiprtGeometryBuildInput geom_input;
30
31 /* Custom primitives. */
32 device_vector<BoundBox> custom_primitive_bound;
33 device_vector<int> triangle_index;
34 device_vector<float> vertex_data;
35
36 BVHHIPRT(const BVHParams &params,
37 const vector<Geometry *> &geometry,
38 const vector<Object *> &objects,
39 Device *in_device);
40
41 ~BVHHIPRT() override;
42
43 private:
44 Device *device;
45};
46
48
49#endif
Definition bvh/bvh.h:67
#define CCL_NAMESPACE_END