Blender  V2.93
Macros | Typedefs | Functions
kernel_compat_optix.h File Reference
#include <optix.h>
#include <stdint.h>
#include "util/util_half.h"
#include "util/util_types.h"

Go to the source code of this file.

Macros

#define OPTIX_DONT_INCLUDE_CUDA
 
#define __KERNEL_GPU__
 
#define __KERNEL_CUDA__
 
#define __KERNEL_OPTIX__
 
#define CCL_NAMESPACE_BEGIN
 
#define CCL_NAMESPACE_END
 
#define ATTR_FALLTHROUGH
 
#define __NODES_MAX_GROUP__   NODE_GROUP_LEVEL_MAX
 
#define __NODES_FEATURES__   NODE_FEATURE_ALL
 
#define ccl_device    __device__ __forceinline__
 
#define ccl_device_inline   ccl_device
 
#define ccl_device_forceinline   ccl_device
 
#define ccl_device_noinline   __device__ __noinline__
 
#define ccl_device_noinline_cpu   ccl_device
 
#define ccl_global
 
#define ccl_static_constant   __constant__
 
#define ccl_constant   const
 
#define ccl_local
 
#define ccl_local_param
 
#define ccl_private
 
#define ccl_may_alias
 
#define ccl_addr_space
 
#define ccl_loop_no_unroll
 
#define ccl_restrict   __restrict__
 
#define ccl_ref
 
#define ccl_align(n)   __align__(n)
 
#define ccl_optional_struct_init   = {}
 
#define kernel_data   __params.data
 
#define kernel_tex_array(t)   __params.t
 
#define kernel_tex_fetch(t, index)   __params.t[(index)]
 
#define kernel_assert(cond)
 

Typedefs

typedef unsigned short half
 
typedef unsigned long long CUtexObject
 

Functions

__device__ half __float2half (const float f)
 

Macro Definition Documentation

◆ __KERNEL_CUDA__

#define __KERNEL_CUDA__

Definition at line 25 of file kernel_compat_optix.h.

◆ __KERNEL_GPU__

#define __KERNEL_GPU__

Definition at line 24 of file kernel_compat_optix.h.

◆ __KERNEL_OPTIX__

#define __KERNEL_OPTIX__

Definition at line 26 of file kernel_compat_optix.h.

◆ __NODES_FEATURES__

#define __NODES_FEATURES__   NODE_FEATURE_ALL

Definition at line 61 of file kernel_compat_optix.h.

◆ __NODES_MAX_GROUP__

#define __NODES_MAX_GROUP__   NODE_GROUP_LEVEL_MAX

Definition at line 58 of file kernel_compat_optix.h.

◆ ATTR_FALLTHROUGH

#define ATTR_FALLTHROUGH

Definition at line 31 of file kernel_compat_optix.h.

◆ ccl_addr_space

#define ccl_addr_space

Definition at line 77 of file kernel_compat_optix.h.

◆ ccl_align

#define ccl_align (   n)    __align__(n)

Definition at line 81 of file kernel_compat_optix.h.

◆ ccl_constant

#define ccl_constant   const

Definition at line 72 of file kernel_compat_optix.h.

◆ ccl_device

#define ccl_device    __device__ __forceinline__

Definition at line 64 of file kernel_compat_optix.h.

◆ ccl_device_forceinline

#define ccl_device_forceinline   ccl_device

Definition at line 67 of file kernel_compat_optix.h.

◆ ccl_device_inline

#define ccl_device_inline   ccl_device

Definition at line 66 of file kernel_compat_optix.h.

◆ ccl_device_noinline

#define ccl_device_noinline   __device__ __noinline__

Definition at line 68 of file kernel_compat_optix.h.

◆ ccl_device_noinline_cpu

#define ccl_device_noinline_cpu   ccl_device

Definition at line 69 of file kernel_compat_optix.h.

◆ ccl_global

#define ccl_global

Definition at line 70 of file kernel_compat_optix.h.

◆ ccl_local

#define ccl_local

Definition at line 73 of file kernel_compat_optix.h.

◆ ccl_local_param

#define ccl_local_param

Definition at line 74 of file kernel_compat_optix.h.

◆ ccl_loop_no_unroll

#define ccl_loop_no_unroll

Definition at line 78 of file kernel_compat_optix.h.

◆ ccl_may_alias

#define ccl_may_alias

Definition at line 76 of file kernel_compat_optix.h.

◆ CCL_NAMESPACE_BEGIN

#define CCL_NAMESPACE_BEGIN

Definition at line 27 of file kernel_compat_optix.h.

◆ CCL_NAMESPACE_END

#define CCL_NAMESPACE_END

Definition at line 28 of file kernel_compat_optix.h.

◆ ccl_optional_struct_init

#define ccl_optional_struct_init   = {}

Definition at line 84 of file kernel_compat_optix.h.

◆ ccl_private

#define ccl_private

Definition at line 75 of file kernel_compat_optix.h.

◆ ccl_ref

#define ccl_ref

Definition at line 80 of file kernel_compat_optix.h.

◆ ccl_restrict

#define ccl_restrict   __restrict__

Definition at line 79 of file kernel_compat_optix.h.

◆ ccl_static_constant

#define ccl_static_constant   __constant__

Definition at line 71 of file kernel_compat_optix.h.

◆ kernel_assert

#define kernel_assert (   cond)

Definition at line 90 of file kernel_compat_optix.h.

◆ kernel_data

#define kernel_data   __params.data

Definition at line 86 of file kernel_compat_optix.h.

◆ kernel_tex_array

#define kernel_tex_array (   t)    __params.t

Definition at line 87 of file kernel_compat_optix.h.

◆ kernel_tex_fetch

#define kernel_tex_fetch (   t,
  index 
)    __params.t[(index)]

Definition at line 88 of file kernel_compat_optix.h.

◆ OPTIX_DONT_INCLUDE_CUDA

#define OPTIX_DONT_INCLUDE_CUDA

Definition at line 21 of file kernel_compat_optix.h.

Typedef Documentation

◆ CUtexObject

typedef unsigned long long CUtexObject

Definition at line 41 of file kernel_compat_optix.h.

◆ half

typedef unsigned short half

Definition at line 40 of file kernel_compat_optix.h.

Function Documentation

◆ __float2half()

__device__ half __float2half ( const float  f)

Definition at line 49 of file kernel_compat_optix.h.