Blender  V2.93
bvh_optix.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019, NVIDIA Corporation.
3  * Copyright 2019, Blender Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __BVH_OPTIX_H__
19 #define __BVH_OPTIX_H__
20 
21 #ifdef WITH_OPTIX
22 
23 # include "bvh/bvh.h"
24 # include "bvh/bvh_params.h"
25 # include "device/device_memory.h"
26 
28 
29 class BVHOptiX : public BVH {
30  public:
31  Device *device;
32  uint64_t traversable_handle;
34  device_only_memory<char> motion_transform_data;
35 
36  protected:
37  friend class BVH;
38  BVHOptiX(const BVHParams &params,
41  Device *device);
42  virtual ~BVHOptiX();
43 };
44 
46 
47 #endif /* WITH_OPTIX */
48 
49 #endif /* __BVH_OPTIX_H__ */
Definition: bvh/bvh.h:80
vector< Geometry * > geometry
Definition: bvh/bvh.h:83
vector< Object * > objects
Definition: bvh/bvh.h:84
Definition: device.h:293
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
#define CCL_NAMESPACE_END
unsigned __int64 uint64_t
Definition: stdint.h:93