Blender
V2.93
intern
cycles
bvh
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
27
CCL_NAMESPACE_BEGIN
28
29
class
BVHOptiX :
public
BVH
{
30
public
:
31
Device
*device;
32
uint64_t
traversable_handle;
33
device_only_memory<char>
as_data;
34
device_only_memory<char>
motion_transform_data;
35
36
protected
:
37
friend
class
BVH
;
38
BVHOptiX(
const
BVHParams
&
params
,
39
const
vector<Geometry *>
&
geometry
,
40
const
vector<Object *>
&
objects
,
41
Device
*device);
42
virtual
~BVHOptiX();
43
};
44
45
CCL_NAMESPACE_END
46
47
#endif
/* WITH_OPTIX */
48
49
#endif
/* __BVH_OPTIX_H__ */
bvh_params.h
BVHParams
Definition:
bvh_params.h:46
BVH
Definition:
bvh/bvh.h:80
BVH::geometry
vector< Geometry * > geometry
Definition:
bvh/bvh.h:83
BVH::objects
vector< Object * > objects
Definition:
bvh/bvh.h:84
Device
Definition:
device.h:293
device_only_memory< char >
vector< Geometry * >
device_memory.h
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition:
interface_widgets.c:1164
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition:
kernel_compat_cuda.h:23
CCL_NAMESPACE_BEGIN
Definition:
blender_python.cpp:54
uint64_t
unsigned __int64 uint64_t
Definition:
stdint.h:93
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1