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