Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/bvh/bvh_embree.h
| Show All 34 Lines | typedef enum { | ||||
| RAY_VOLUME_ALL = 4, | RAY_VOLUME_ALL = 4, | ||||
| } RayType; | } RayType; | ||||
| KernelGlobals kg; | KernelGlobals kg; | ||||
| RayType type; | RayType type; | ||||
| /* for shadow rays */ | /* for shadow rays */ | ||||
| Intersection *isect_s; | Intersection *isect_s; | ||||
| int max_hits; | uint max_hits; | ||||
| int num_hits; | uint num_hits; | ||||
| uint num_recorded_hits; | |||||
| float throughput; | |||||
| float max_t; | float max_t; | ||||
| bool opaque_hit; | bool opaque_hit; | ||||
| /* for SSS Rays: */ | /* for SSS Rays: */ | ||||
| LocalIntersection *local_isect; | LocalIntersection *local_isect; | ||||
| int local_object_id; | int local_object_id; | ||||
| uint *lcg_state; | uint *lcg_state; | ||||
| CCLIntersectContext(KernelGlobals kg_, RayType type_) | CCLIntersectContext(KernelGlobals kg_, RayType type_) | ||||
| { | { | ||||
| kg = kg_; | kg = kg_; | ||||
| type = type_; | type = type_; | ||||
| max_hits = 1; | max_hits = 1; | ||||
| num_hits = 0; | num_hits = 0; | ||||
| num_recorded_hits = 0; | |||||
| throughput = 1.0f; | |||||
| max_t = FLT_MAX; | max_t = FLT_MAX; | ||||
| opaque_hit = false; | opaque_hit = false; | ||||
| isect_s = NULL; | isect_s = NULL; | ||||
| local_isect = NULL; | local_isect = NULL; | ||||
| local_object_id = -1; | local_object_id = -1; | ||||
| lcg_state = NULL; | lcg_state = NULL; | ||||
| } | } | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||