Blender V4.3
optix.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 NVIDIA Corporation
2 * SPDX-FileCopyrightText: 2019-2022 Blender Foundation
3 *
4 * SPDX-License-Identifier: Apache-2.0 */
5
6#ifndef __BVH_OPTIX_H__
7#define __BVH_OPTIX_H__
8
9#ifdef WITH_OPTIX
10
11# include "bvh/bvh.h"
12# include "bvh/params.h"
13
14# include "device/memory.h"
15
16# include "util/unique_ptr.h"
17
19
20class BVHOptiX : public BVH {
21 public:
22 Device *device;
23 uint64_t traversable_handle;
24 unique_ptr<device_only_memory<char>> as_data;
25 unique_ptr<device_only_memory<char>> motion_transform_data;
26
27 protected:
28 friend class BVH;
29 BVHOptiX(const BVHParams &params,
30 const vector<Geometry *> &geometry,
31 const vector<Object *> &objects,
32 Device *device);
33 virtual ~BVHOptiX();
34};
35
37
38#endif /* WITH_OPTIX */
39
40#endif /* __BVH_OPTIX_H__ */
Definition bvh/bvh.h:66
#define CCL_NAMESPACE_END
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
unsigned __int64 uint64_t
Definition stdint.h:90