Blender V5.0
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#pragma once
7
8#ifdef WITH_OPTIX
9
10# include "bvh/bvh.h"
11# include "bvh/params.h"
12
13# include "device/memory.h"
14
15# include "util/unique_ptr.h"
16
18
19class BVHOptiX : public BVH {
20 public:
21 Device *device;
22 uint64_t traversable_handle;
23 unique_ptr<device_only_memory<char>> as_data;
24 unique_ptr<device_only_memory<char>> motion_transform_data;
25
26 BVHOptiX(const BVHParams &params,
27 const vector<Geometry *> &geometry,
28 const vector<Object *> &objects,
29 Device *device);
30 ~BVHOptiX() override;
31};
32
34
35#endif /* WITH_OPTIX */
unsigned long long int uint64_t
Definition bvh/bvh.h:67
#define CCL_NAMESPACE_END
StoredFloat4 as_data(float4 interp)
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]