a69cc9f13d
Since Embree v3.13.0 supports AARCH64, switch back to the
official repo instead of using Embree-aarch64.
`thirdparty/embree/patches/godot-changes.patch` should now contain
an accurate diff of the changes done to the library.
(cherry picked from commit 767e374dce
)
37 lines
772 B
C++
37 lines
772 B
C++
// Copyright 2009-2021 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);
|
|
};
|
|
}
|
|
}
|