Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/bvh/bvh_shadow_all.h
| Show All 30 Lines | |||||
| * BVH_MOTION: motion blur rendering | * BVH_MOTION: motion blur rendering | ||||
| */ | */ | ||||
| #ifndef __KERNEL_GPU__ | #ifndef __KERNEL_GPU__ | ||||
| ccl_device | ccl_device | ||||
| #else | #else | ||||
| ccl_device_inline | ccl_device_inline | ||||
| #endif | #endif | ||||
| bool BVH_FUNCTION_FULL_NAME(BVH)(ccl_global const KernelGlobals *kg, | bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals kg, | ||||
| ccl_private const Ray *ray, | ccl_private const Ray *ray, | ||||
| ccl_private Intersection *isect_array, | ccl_private Intersection *isect_array, | ||||
| const uint visibility, | const uint visibility, | ||||
| const uint max_hits, | const uint max_hits, | ||||
| ccl_private uint *num_hits) | ccl_private uint *num_hits) | ||||
| { | { | ||||
| /* todo: | /* todo: | ||||
| * - likely and unlikely for if() statements | * - likely and unlikely for if() statements | ||||
| ▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | #endif | ||||
| node_addr = traversal_stack[stack_ptr]; | node_addr = traversal_stack[stack_ptr]; | ||||
| --stack_ptr; | --stack_ptr; | ||||
| } | } | ||||
| } while (node_addr != ENTRYPOINT_SENTINEL); | } while (node_addr != ENTRYPOINT_SENTINEL); | ||||
| return false; | return false; | ||||
| } | } | ||||
| ccl_device_inline bool BVH_FUNCTION_NAME(ccl_global const KernelGlobals *kg, | ccl_device_inline bool BVH_FUNCTION_NAME(KernelGlobals kg, | ||||
| ccl_private const Ray *ray, | ccl_private const Ray *ray, | ||||
| ccl_private Intersection *isect_array, | ccl_private Intersection *isect_array, | ||||
| const uint visibility, | const uint visibility, | ||||
| const uint max_hits, | const uint max_hits, | ||||
| ccl_private uint *num_hits) | ccl_private uint *num_hits) | ||||
| { | { | ||||
| return BVH_FUNCTION_FULL_NAME(BVH)(kg, ray, isect_array, visibility, max_hits, num_hits); | return BVH_FUNCTION_FULL_NAME(BVH)(kg, ray, isect_array, visibility, max_hits, num_hits); | ||||
| } | } | ||||
| #undef BVH_FUNCTION_NAME | #undef BVH_FUNCTION_NAME | ||||
| #undef BVH_FUNCTION_FEATURES | #undef BVH_FUNCTION_FEATURES | ||||
| #undef NODE_INTERSECT | #undef NODE_INTERSECT | ||||