Base class for all SAH-based, top-down builders.
Definition at line 24 of file top_down_sah_builder.h.
Classes | |
struct | Config |
struct | WorkItem |
Protected Types | |
using | BBox = bvh::v2::BBox< Scalar, Node::dimension > |
using | Scalar = typename Node::Scalar |
using | Vec = bvh::v2::Vec< Scalar, Node::dimension > |
Protected Member Functions | |
BVH_ALWAYS_INLINE | TopDownSahBuilder (std::span< const BBox > bboxes, std::span< const Vec > centers, const Config &config) |
Bvh< Node > | build () |
BVH_ALWAYS_INLINE BBox | compute_bbox (size_t begin, size_t end) const |
BVH_ALWAYS_INLINE const std::vector< size_t > & | get_prim_ids () const |
virtual std::vector< size_t > & | get_prim_ids ()=0 |
virtual std::optional< size_t > | try_split (const BBox &bbox, size_t begin, size_t end)=0 |
Protected Attributes | |
std::span< const BBox > | bboxes_ |
std::span< const Vec > | centers_ |
const Config & | config_ |
#include <bvh/v2/top_down_sah_builder.h>
|
protected |
Definition at line 28 of file top_down_sah_builder.h.
|
protected |
Definition at line 26 of file top_down_sah_builder.h.
|
protected |
Definition at line 27 of file top_down_sah_builder.h.
|
inlineprotected |
Definition at line 59 of file top_down_sah_builder.h.
|
inlineprotected |
Definition at line 78 of file top_down_sah_builder.h.
|
inlineprotected |
Definition at line 137 of file top_down_sah_builder.h.
|
inlineprotected |
Definition at line 74 of file top_down_sah_builder.h.
|
protectedpure virtual |
Implemented in bvh::v2::BinnedSahBuilder< Node, BinCount >, and bvh::v2::SweepSahBuilder< Node >.
|
protectedpure virtual |
Implemented in bvh::v2::BinnedSahBuilder< Node, BinCount >, and bvh::v2::SweepSahBuilder< Node >.
|
protected |
Definition at line 55 of file top_down_sah_builder.h.
|
protected |
Definition at line 56 of file top_down_sah_builder.h.
|
protected |
Definition at line 57 of file top_down_sah_builder.h.