Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/device/optix/kernel.cu
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| } | } | ||||
| extern "C" __global__ void __raygen__kernel_optix_integrator_intersect_closest() | extern "C" __global__ void __raygen__kernel_optix_integrator_intersect_closest() | ||||
| { | { | ||||
| const int global_index = optixGetLaunchIndex().x; | const int global_index = optixGetLaunchIndex().x; | ||||
| const int path_index = (__params.path_index_array) ? __params.path_index_array[global_index] : | const int path_index = (__params.path_index_array) ? __params.path_index_array[global_index] : | ||||
| global_index; | global_index; | ||||
| integrator_intersect_closest(nullptr, path_index); | integrator_intersect_closest(nullptr, path_index, __params.render_buffer); | ||||
| } | } | ||||
| extern "C" __global__ void __raygen__kernel_optix_integrator_intersect_shadow() | extern "C" __global__ void __raygen__kernel_optix_integrator_intersect_shadow() | ||||
| { | { | ||||
| const int global_index = optixGetLaunchIndex().x; | const int global_index = optixGetLaunchIndex().x; | ||||
| const int path_index = (__params.path_index_array) ? __params.path_index_array[global_index] : | const int path_index = (__params.path_index_array) ? __params.path_index_array[global_index] : | ||||
| global_index; | global_index; | ||||
| integrator_intersect_shadow(nullptr, path_index); | integrator_intersect_shadow(nullptr, path_index); | ||||
| ▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines | |||||