Blender  V3.3
optix.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2019, NVIDIA Corporation.
3  * Copyright 2019-2022 Blender Foundation. */
4 
5 #ifndef __BVH_OPTIX_H__
6 #define __BVH_OPTIX_H__
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 
19 class 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  protected:
27  friend class BVH;
28  BVHOptiX(const BVHParams &params,
31  Device *device);
32  virtual ~BVHOptiX();
33 };
34 
36 
37 #endif /* WITH_OPTIX */
38 
39 #endif /* __BVH_OPTIX_H__ */
Definition: bvh/bvh.h:63
vector< Geometry * > geometry
Definition: bvh/bvh.h:66
vector< Object * > objects
Definition: bvh/bvh.h:67
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
unsigned __int64 uint64_t
Definition: stdint.h:90