Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/geom/geom_bvh.h
| Context not available. | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| #ifdef __KERNEL_CPU__ | |||||
| #include "geom_bvh_embree.h" | |||||
| #endif | |||||
| /* Don't inline intersect functions on GPU, this is faster */ | /* Don't inline intersect functions on GPU, this is faster */ | ||||
| #ifdef __KERNEL_GPU__ | #ifdef __KERNEL_GPU__ | ||||
| #define ccl_device_intersect ccl_device_noinline | #define ccl_device_intersect ccl_device_noinline | ||||
| Context not available. | |||||
| ccl_device_intersect bool scene_intersect(KernelGlobals *kg, const Ray *ray, const uint visibility, Intersection *isect, | ccl_device_intersect bool scene_intersect(KernelGlobals *kg, const Ray *ray, const uint visibility, Intersection *isect, | ||||
| uint *lcg_state, float difl, float extmax) | uint *lcg_state, float difl, float extmax) | ||||
| { | { | ||||
| #ifdef __KERNEL_CPU__ | |||||
| if(kernel_data.bvh.use_embree) | |||||
| return ccl::embree_intersect(kernel_data.embree_scene, ray, isect); | |||||
| #endif | |||||
| #ifdef __OBJECT_MOTION__ | #ifdef __OBJECT_MOTION__ | ||||
| if(kernel_data.bvh.have_motion) { | if(kernel_data.bvh.have_motion) { | ||||
| #ifdef __HAIR__ | #ifdef __HAIR__ | ||||
| Context not available. | |||||