8#define OPTIX_DONT_INCLUDE_CUDA
12#define __KERNEL_CUDA__
13#define __KERNEL_OPTIX__
14#define CCL_NAMESPACE_BEGIN
15#define CCL_NAMESPACE_END
17#ifndef ATTR_FALLTHROUGH
18# define ATTR_FALLTHROUGH
31# define FLT_MIN 1.175494350822287507969e-38f
32# define FLT_MAX 340282346638528859811704183484516925440.0f
33# define FLT_EPSILON 1.192092896e-07F
39#define ccl_device_extern extern "C" __device__
40#define ccl_device_inline ccl_device
41#define ccl_device_forceinline ccl_device
42#define ccl_device_inline_method __device__ __forceinline__
43#define ccl_device_noinline static __device__ __noinline__
44#define ccl_device_noinline_cpu ccl_device
46#define ccl_inline_constant static __constant__
47#define ccl_device_constant __constant__ __device__
48#define ccl_static_constexpr static constexpr
49#define ccl_constant const
50#define ccl_gpu_shared __shared__
52#define ccl_ray_data ccl_private
54#define ccl_restrict __restrict__
55#define ccl_loop_no_unroll
56#define ccl_align(n) __align__(n)
59#define ccl_optional_struct_init = {}
63#define kernel_assert(cond)
76 return tex2D<T>(texobj, x, y);
85 return tex3D<T>(texobj, x, y,
z);
90typedef unsigned short half;
95 asm(
"{ cvt.rn.f16.f32 %0, %1;}\n" :
"=h"(val) :
"f"(f));
102 asm(
"{ cvt.f32.f16 %0, %1;}\n" :
"=f"(val) :
"h"(h));
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
CUtexObject ccl_gpu_tex_object_3D
unsigned long long CUtexObject
CUtexObject ccl_gpu_tex_object_2D
ccl_device_forceinline T ccl_gpu_tex_object_read_2D(const ccl_gpu_tex_object_2D texobj, const float x, const float y)
#define ccl_device_forceinline
CUtexObject ccl_gpu_tex_object_3D
ccl_device_forceinline T ccl_gpu_tex_object_read_3D(const ccl_gpu_tex_object_3D texobj, const float x, const float y, const float z)
ccl_device_forceinline float __half2float(const half h)
unsigned long long CUtexObject
CUtexObject ccl_gpu_tex_object_2D
unsigned __int64 uint64_t