Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/bvh/bvh_types.h
| Show All 30 Lines | |||||
| #define ENTRYPOINT_SENTINEL 0x76543210 | #define ENTRYPOINT_SENTINEL 0x76543210 | ||||
| /* 64 object BVH + 64 mesh BVH + 64 object node splitting */ | /* 64 object BVH + 64 mesh BVH + 64 object node splitting */ | ||||
| #define BVH_STACK_SIZE 192 | #define BVH_STACK_SIZE 192 | ||||
| #define BVH_QSTACK_SIZE 384 | #define BVH_QSTACK_SIZE 384 | ||||
| /* BVH intersection function variations */ | /* BVH intersection function variations */ | ||||
| #define BVH_INSTANCING 1 | #define BVH_INSTANCING (1 << 0) | ||||
| #define BVH_MOTION 2 | #define BVH_MOTION (1 << 1) | ||||
| #define BVH_HAIR 4 | #define BVH_HAIR (1 << 2) | ||||
| #define BVH_HAIR_MINIMUM_WIDTH 8 | #define BVH_HAIR_MINIMUM_WIDTH (1 << 3) | ||||
| #define BVH_RESCALE_ON_OVERFLOW (1 << 4) | |||||
| #define BVH_NAME_JOIN(x,y) x ## _ ## y | #define BVH_NAME_JOIN(x,y) x ## _ ## y | ||||
| #define BVH_NAME_EVAL(x,y) BVH_NAME_JOIN(x,y) | #define BVH_NAME_EVAL(x,y) BVH_NAME_JOIN(x,y) | ||||
| #define BVH_FUNCTION_FULL_NAME(prefix) BVH_NAME_EVAL(prefix, BVH_FUNCTION_NAME) | #define BVH_FUNCTION_FULL_NAME(prefix) BVH_NAME_EVAL(prefix, BVH_FUNCTION_NAME) | ||||
| #define BVH_FEATURE(f) (((BVH_FUNCTION_FEATURES) & (f)) != 0) | #define BVH_FEATURE(f) (((BVH_FUNCTION_FEATURES) & (f)) != 0) | ||||
| /* Debugging heleprs */ | /* Debugging heleprs */ | ||||
| Show All 23 Lines | |||||