Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/integrator/integrator_intersect_subsurface.h
| Show All 14 Lines | |||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "kernel/integrator/integrator_subsurface.h" | #include "kernel/integrator/integrator_subsurface.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| ccl_device void integrator_intersect_subsurface(INTEGRATOR_STATE_ARGS) | ccl_device void integrator_intersect_subsurface(KernelGlobals kg, IntegratorState state) | ||||
| { | { | ||||
| PROFILING_INIT(kg, PROFILING_INTERSECT_SUBSURFACE); | PROFILING_INIT(kg, PROFILING_INTERSECT_SUBSURFACE); | ||||
| #ifdef __SUBSURFACE__ | #ifdef __SUBSURFACE__ | ||||
| if (subsurface_scatter(INTEGRATOR_STATE_PASS)) { | if (subsurface_scatter(kg, state)) { | ||||
| return; | return; | ||||
| } | } | ||||
| #endif | #endif | ||||
| INTEGRATOR_PATH_TERMINATE(DEVICE_KERNEL_INTEGRATOR_INTERSECT_SUBSURFACE); | INTEGRATOR_PATH_TERMINATE(DEVICE_KERNEL_INTEGRATOR_INTERSECT_SUBSURFACE); | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||