Blender V4.3
hiprt_kernels.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#ifdef __HIPRT__
6
11 const int work_size,
12 ccl_global hiprtGlobalStackBuffer stack_buffer)
13{
14 const int global_index = ccl_gpu_global_id_x();
15
16 if (global_index < work_size) {
18 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
20 }
21}
23
27 const int work_size,
28 ccl_global hiprtGlobalStackBuffer stack_buffer)
29{
30 const int global_index = ccl_gpu_global_id_x();
31
32 if (global_index < work_size) {
34 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
36 }
37}
39
43 const int work_size,
44 ccl_global hiprtGlobalStackBuffer stack_buffer)
45{
46 const int global_index = ccl_gpu_global_id_x();
47
48 if (global_index < work_size) {
50 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
52 }
53}
55
59 const int work_size,
60 ccl_global hiprtGlobalStackBuffer stack_buffer)
61{
62 const int global_index = ccl_gpu_global_id_x();
63
64 if (global_index < work_size) {
66 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
68 }
69}
70
74 const int work_size,
75 ccl_global hiprtGlobalStackBuffer stack_buffer)
76{
77 const int global_index = ccl_gpu_global_id_x();
78
79 if (global_index < work_size) {
81 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
83 }
84}
85
91 const int work_size,
92 ccl_global hiprtGlobalStackBuffer stack_buffer)
93{
94 const int global_index = ccl_gpu_global_id_x();
95 if (global_index < work_size) {
97 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
99 }
100}
104 ccl_global const int *path_index_array,
106 const int work_size,
107 ccl_global hiprtGlobalStackBuffer stack_buffer)
108{
109 const int global_index = ccl_gpu_global_id_x();
110 if (global_index < work_size) {
112 const int state = (path_index_array) ? path_index_array[global_index] : global_index;
114 }
115}
117
118#endif /* __HIPRT__ */
#define ccl_gpu_global_id_x()
#define ccl_global
#define HIPRT_INIT_KERNEL_GLOBAL()
ccl_device void integrator_intersect_closest(KernelGlobals kg, IntegratorState state, ccl_global float *ccl_restrict render_buffer)
CCL_NAMESPACE_BEGIN ccl_device void integrator_intersect_dedicated_light(KernelGlobals kg, IntegratorState state)
ccl_device void integrator_intersect_shadow(KernelGlobals kg, IntegratorShadowState state)
CCL_NAMESPACE_BEGIN ccl_device void integrator_intersect_subsurface(KernelGlobals kg, IntegratorState state)
ccl_device void integrator_intersect_volume_stack(KernelGlobals kg, IntegratorState state)
#define ccl_gpu_kernel_call(x)
#define ccl_gpu_kernel_postfix
#define ccl_gpu_kernel_threads(block_num_threads)
#define ccl_gpu_kernel_signature(name,...)
ccl_gpu_kernel_postfix ccl_global const int * path_index_array
ccl_gpu_kernel_postfix ccl_global const int ccl_global float const int work_size
ccl_gpu_kernel_postfix ccl_global KernelWorkTile const int ccl_global float * render_buffer
#define GPU_HIPRT_KERNEL_BLOCK_NUM_THREADS
static ulong state[N]
ccl_device_forceinline void integrator_shade_surface_mnee(KernelGlobals kg, IntegratorState state, ccl_global float *ccl_restrict render_buffer)
ccl_device_forceinline void integrator_shade_surface_raytrace(KernelGlobals kg, IntegratorState state, ccl_global float *ccl_restrict render_buffer)