Blender V4.3
globals.h File Reference

Go to the source code of this file.

Classes

struct  KernelGlobalsGPU
 
struct  KernelParamsHIPRT
 

Macros

#define HIPRT_SHARED_STACK
 
#define HIPRT_THREAD_STACK_SIZE   64
 
#define HIPRT_SHARED_STACK_SIZE   24
 
#define HIPRT_THREAD_GROUP_SIZE   256
 
#define HIPRT_INIT_KERNEL_GLOBAL()
 
#define KERNEL_DATA_ARRAY(type, name)   const type *name;
 
#define kernel_data   kernel_params.data
 
#define kernel_data_fetch(name, index)   kernel_params.name[(index)]
 
#define kernel_data_array(name)   (kernel_params.name)
 
#define kernel_integrator_state   kernel_params.integrator_state
 

Typedefs

typedef ccl_global KernelGlobalsGPU *ccl_restrict KernelGlobals
 

Enumerations

enum  Intersection_Function_Table_Index {
  Curve_Intersect_Function = 1 , Motion_Triangle_Intersect_Function , Point_Intersect_Function , Triangle_Intersect_Shadow_None ,
  Curve_Intersect_Shadow , Motion_Triangle_Intersect_Shadow , Point_Intersect_Shadow , Triangle_Intersect_Local_None ,
  Curve_Intersect_Local_None , Motion_Triangle_Intersect_Local , Point_Intersect_Local_None , Triangle_Intersect_Volume_None ,
  Curve_Intersect_Volume_None , Motion_Triangle_Intersect_Volume , Point_Intersect_Volume_None
}
 
enum  Filter_Function_Table_Index {
  Triangle_Filter_Closest = 0 , Curve_Filter_Opaque_None , Motion_Triangle_Filter_Opaque_None , Point_Filter_Opaque_Non ,
  Triangle_Filter_Shadow , Curve_Filter_Shadow , Motion_Triangle_Filter_Shadow , Point_Filter_Shadow ,
  Triangle_Filter_Local , Curve_Filter_Local_None , Motion_Triangle_Filter_Local , Point_Filter_Local_None ,
  Triangle_Filter_Volume , Curve_Filter_Volume_None , Motion_Triangle_Filter_Volume , Point_Filter_Volume_None
}
 

Macro Definition Documentation

◆ HIPRT_INIT_KERNEL_GLOBAL

#define HIPRT_INIT_KERNEL_GLOBAL ( )
Value:
KernelGlobals kg = &kg_gpu; \
kg->shared_stack.stackData = &shared_stack[0]; \
kg->shared_stack.stackSize = HIPRT_SHARED_STACK_SIZE; \
kg->global_stack_buffer = stack_buffer;
const KernelGlobalsCPU *ccl_restrict KernelGlobals
#define ccl_gpu_shared
#define ccl_global
#define HIPRT_THREAD_GROUP_SIZE
#define HIPRT_SHARED_STACK_SIZE
hiprtSharedStackBuffer shared_stack

Definition at line 46 of file device/hiprt/globals.h.

◆ HIPRT_SHARED_STACK

#define HIPRT_SHARED_STACK

Definition at line 13 of file device/hiprt/globals.h.

◆ HIPRT_SHARED_STACK_SIZE

#define HIPRT_SHARED_STACK_SIZE   24

Definition at line 20 of file device/hiprt/globals.h.

◆ HIPRT_THREAD_GROUP_SIZE

#define HIPRT_THREAD_GROUP_SIZE   256

Definition at line 29 of file device/hiprt/globals.h.

◆ HIPRT_THREAD_STACK_SIZE

#define HIPRT_THREAD_STACK_SIZE   64

Definition at line 17 of file device/hiprt/globals.h.

◆ kernel_data

#define kernel_data   kernel_params.data

Definition at line 156 of file device/hiprt/globals.h.

◆ KERNEL_DATA_ARRAY

#define KERNEL_DATA_ARRAY ( type,
name )   const type *name;

Definition at line 61 of file device/hiprt/globals.h.

◆ kernel_data_array

#define kernel_data_array ( name)    (kernel_params.name)

Definition at line 158 of file device/hiprt/globals.h.

◆ kernel_data_fetch

#define kernel_data_fetch ( name,
index )   kernel_params.name[(index)]

Definition at line 157 of file device/hiprt/globals.h.

◆ kernel_integrator_state

#define kernel_integrator_state   kernel_params.integrator_state

Definition at line 159 of file device/hiprt/globals.h.

Typedef Documentation

◆ KernelGlobals

Enumeration Type Documentation

◆ Filter_Function_Table_Index

Enumerator
Triangle_Filter_Closest 
Curve_Filter_Opaque_None 
Motion_Triangle_Filter_Opaque_None 
Point_Filter_Opaque_Non 
Triangle_Filter_Shadow 
Curve_Filter_Shadow 
Motion_Triangle_Filter_Shadow 
Point_Filter_Shadow 
Triangle_Filter_Local 
Curve_Filter_Local_None 
Motion_Triangle_Filter_Local 
Point_Filter_Local_None 
Triangle_Filter_Volume 
Curve_Filter_Volume_None 
Motion_Triangle_Filter_Volume 
Point_Filter_Volume_None 

Definition at line 113 of file device/hiprt/globals.h.

◆ Intersection_Function_Table_Index

Enumerator
Curve_Intersect_Function 
Motion_Triangle_Intersect_Function 
Point_Intersect_Function 
Triangle_Intersect_Shadow_None 
Curve_Intersect_Shadow 
Motion_Triangle_Intersect_Shadow 
Point_Intersect_Shadow 
Triangle_Intersect_Local_None 
Curve_Intersect_Local_None 
Motion_Triangle_Intersect_Local 
Point_Intersect_Local_None 
Triangle_Intersect_Volume_None 
Curve_Intersect_Volume_None 
Motion_Triangle_Intersect_Volume 
Point_Intersect_Volume_None 

Definition at line 82 of file device/hiprt/globals.h.