Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/device/gpu/kernel.h
| Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | ccl_gpu_kernel(GPU_KERNEL_BLOCK_NUM_THREADS, GPU_KERNEL_MAX_REGISTERS) | ||||
| uint x, y, sample; | uint x, y, sample; | ||||
| get_work_pixel(tile, tile_work_index, &x, &y, &sample); | get_work_pixel(tile, tile_work_index, &x, &y, &sample); | ||||
| integrator_init_from_bake(nullptr, state, tile, render_buffer, x, y, sample); | integrator_init_from_bake(nullptr, state, tile, render_buffer, x, y, sample); | ||||
| } | } | ||||
| ccl_gpu_kernel(GPU_KERNEL_BLOCK_NUM_THREADS, GPU_KERNEL_MAX_REGISTERS) | ccl_gpu_kernel(GPU_KERNEL_BLOCK_NUM_THREADS, GPU_KERNEL_MAX_REGISTERS) | ||||
| kernel_gpu_integrator_intersect_closest(const int *path_index_array, const int work_size) | kernel_gpu_integrator_intersect_closest(const int *path_index_array, | ||||
| ccl_global float *render_buffer, | |||||
| const int work_size) | |||||
| { | { | ||||
| const int global_index = ccl_gpu_global_id_x(); | const int global_index = ccl_gpu_global_id_x(); | ||||
| if (global_index < work_size) { | if (global_index < work_size) { | ||||
| const int state = (path_index_array) ? path_index_array[global_index] : global_index; | const int state = (path_index_array) ? path_index_array[global_index] : global_index; | ||||
| integrator_intersect_closest(NULL, state); | integrator_intersect_closest(NULL, state, render_buffer); | ||||
| } | } | ||||
| } | } | ||||
| ccl_gpu_kernel(GPU_KERNEL_BLOCK_NUM_THREADS, GPU_KERNEL_MAX_REGISTERS) | ccl_gpu_kernel(GPU_KERNEL_BLOCK_NUM_THREADS, GPU_KERNEL_MAX_REGISTERS) | ||||
| kernel_gpu_integrator_intersect_shadow(const int *path_index_array, const int work_size) | kernel_gpu_integrator_intersect_shadow(const int *path_index_array, const int work_size) | ||||
| { | { | ||||
| const int global_index = ccl_gpu_global_id_x(); | const int global_index = ccl_gpu_global_id_x(); | ||||
| ▲ Show 20 Lines • Show All 799 Lines • Show Last 20 Lines | |||||