1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "accel.h"
namespace embree
{
/*! merges N acceleration structures together, by processing them in order */
class AccelN : public Accel
{
public:
AccelN ();
~AccelN();
public:
void accels_add(Accel* accel);
void accels_init();
public:
static bool pointQuery (Accel::Intersectors* This, PointQuery* query, PointQueryContext* context);
public:
static void intersect (Accel::Intersectors* This, RTCRayHit& ray, IntersectContext* context);
static void intersect4 (const void* valid, Accel::Intersectors* This, RTCRayHit4& ray, IntersectContext* context);
static void intersect8 (const void* valid, Accel::Intersectors* This, RTCRayHit8& ray, IntersectContext* context);
static void intersect16 (const void* valid, Accel::Intersectors* This, RTCRayHit16& ray, IntersectContext* context);
static void intersectN (Accel::Intersectors* This, RTCRayHitN** ray, const size_t N, IntersectContext* context);
public:
static void occluded (Accel::Intersectors* This, RTCRay& ray, IntersectContext* context);
static void occluded4 (const void* valid, Accel::Intersectors* This, RTCRay4& ray, IntersectContext* context);
static void occluded8 (const void* valid, Accel::Intersectors* This, RTCRay8& ray, IntersectContext* context);
static void occluded16 (const void* valid, Accel::Intersectors* This, RTCRay16& ray, IntersectContext* context);
static void occludedN (Accel::Intersectors* This, RTCRayN** ray, const size_t N, IntersectContext* context);
public:
void accels_print(size_t ident);
void accels_immutable();
void accels_build ();
void accels_select(bool filter);
void accels_deleteGeometry(size_t geomID);
void accels_clear ();
public:
std::vector<Accel*> accels;
};
}
|