Path: blob/master/thirdparty/embree/kernels/bvh/bvh_intersector1.h
9906 views
// Copyright 2009-2021 Intel Corporation1// SPDX-License-Identifier: Apache-2.023#pragma once45#include "bvh.h"6#include "../common/ray.h"7#include "../common/point_query.h"89namespace embree10{11namespace isa12{13/*! BVH single ray intersector. */14template<int N, int types, bool robust, typename PrimitiveIntersector1>15class BVHNIntersector116{17/* shortcuts for frequently used types */18typedef typename PrimitiveIntersector1::Precalculations Precalculations;19typedef typename PrimitiveIntersector1::Primitive Primitive;20typedef BVHN<N> BVH;21typedef typename BVH::NodeRef NodeRef;22typedef typename BVH::AABBNode AABBNode;23typedef typename BVH::AABBNodeMB4D AABBNodeMB4D;2425static const size_t stackSize = 1+(N-1)*BVH::maxDepth+3; // +3 due to 16-wide store2627public:28static void intersect (const Accel::Intersectors* This, RayHit& ray, RayQueryContext* context);29static void occluded (const Accel::Intersectors* This, Ray& ray, RayQueryContext* context);30static bool pointQuery(const Accel::Intersectors* This, PointQuery* query, PointQueryContext* context);31};32}33}343536