Path: blob/master/thirdparty/embree/kernels/bvh/bvh_rotate.h
9912 views
// Copyright 2009-2021 Intel Corporation1// SPDX-License-Identifier: Apache-2.023#pragma once45#include "bvh.h"67namespace embree8{9namespace isa10{11template<int N>12class BVHNRotate13{14typedef typename BVHN<N>::NodeRef NodeRef;1516public:17static const bool enabled = false;1819static __forceinline size_t rotate(NodeRef parentRef, size_t depth = 1) { return 0; }20static __forceinline void restructure(NodeRef ref, size_t depth = 1) {}21};2223/* BVH4 tree rotations */24template<>25class BVHNRotate<4>26{27typedef BVH4::AABBNode AABBNode;28typedef BVH4::NodeRef NodeRef;2930public:31static const bool enabled = true;3233static size_t rotate(NodeRef parentRef, size_t depth = 1);34};35}36}373839