23template<
class LocalIntersection>
32 for (
int i =
min(max_hits,
int(local_isect->num_hits)) - 1; i >= 0; --i) {
33 if (local_isect->hits[i].t == isect_t) {
38 local_isect->num_hits++;
41 if (local_isect->num_hits <= max_hits) {
42 hit = local_isect->num_hits - 1;
48 if (hit >= max_hits) {
56 if (local_isect->num_hits && isect_t > local_isect->hits[0].t) {
59 local_isect->num_hits = 1;
#define ccl_device_forceinline
#define CCL_NAMESPACE_END
CCL_NAMESPACE_BEGIN ccl_device uint lcg_step_uint(T rng)