blob: 009bef339ee11cf71a1ef0a0b2b1242787281a93 (
plain)
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
|
// Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "bvh.h"
namespace embree
{
namespace isa
{
template<int N>
class BVHNRotate
{
typedef typename BVHN<N>::NodeRef NodeRef;
public:
static const bool enabled = false;
static __forceinline size_t rotate(NodeRef parentRef, size_t depth = 1) { return 0; }
static __forceinline void restructure(NodeRef ref, size_t depth = 1) {}
};
/* BVH4 tree rotations */
template<>
class BVHNRotate<4>
{
typedef BVH4::AABBNode AABBNode;
typedef BVH4::NodeRef NodeRef;
public:
static const bool enabled = true;
static size_t rotate(NodeRef parentRef, size_t depth = 1);
};
}
}
|