Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/bvh/bvh_volume_all.h
| Show All 29 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 | ||||
| uint BVH_FUNCTION_FULL_NAME(BVH)(ccl_global const KernelGlobals *kg, | uint BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals kg, | ||||
| ccl_private const Ray *ray, | ccl_private const Ray *ray, | ||||
| Intersection *isect_array, | Intersection *isect_array, | ||||
| const uint max_hits, | const uint max_hits, | ||||
| const uint visibility) | const uint visibility) | ||||
| { | { | ||||
| /* todo: | /* todo: | ||||
| * - test if pushing distance on the stack helps (for non shadow rays) | * - test if pushing distance on the stack helps (for non shadow rays) | ||||
| * - separate version for shadow rays | * - separate version for shadow rays | ||||
| ▲ Show 20 Lines • Show All 237 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 num_hits; | return num_hits; | ||||
| } | } | ||||
| ccl_device_inline uint BVH_FUNCTION_NAME(ccl_global const KernelGlobals *kg, | ccl_device_inline uint BVH_FUNCTION_NAME(KernelGlobals kg, | ||||
| ccl_private const Ray *ray, | ccl_private const Ray *ray, | ||||
| Intersection *isect_array, | Intersection *isect_array, | ||||
| const uint max_hits, | const uint max_hits, | ||||
| const uint visibility) | const uint visibility) | ||||
| { | { | ||||
| return BVH_FUNCTION_FULL_NAME(BVH)(kg, ray, isect_array, max_hits, visibility); | return BVH_FUNCTION_FULL_NAME(BVH)(kg, ray, isect_array, max_hits, visibility); | ||||
| } | } | ||||
| #undef BVH_FUNCTION_NAME | #undef BVH_FUNCTION_NAME | ||||
| #undef BVH_FUNCTION_FEATURES | #undef BVH_FUNCTION_FEATURES | ||||
| #undef NODE_INTERSECT | #undef NODE_INTERSECT | ||||