Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin Struct Reference

template<typename Node, size_t BinCount = 8>
struct bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin

Definition at line 47 of file binned_sah_builder.h.

Public Member Functions

 Bin ()=default
 
BVH_ALWAYS_INLINE void add (const BBox &bbox, size_t prim_count=1)
 
BVH_ALWAYS_INLINE void add (const Bin &bin)
 
BVH_ALWAYS_INLINE Scalar get_cost (const SplitHeuristic< Scalar > &sah) const
 

Public Attributes

BBox bbox = BBox::make_empty()
 
size_t prim_count = 0
 

#include <bvh/v2/binned_sah_builder.h>

Constructor & Destructor Documentation

◆ Bin()

template<typename Node , size_t BinCount = 8>
bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::Bin ( )
default

Member Function Documentation

◆ add() [1/2]

template<typename Node , size_t BinCount = 8>
BVH_ALWAYS_INLINE void bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::add ( const BBox bbox,
size_t  prim_count = 1 
)
inline

Definition at line 57 of file binned_sah_builder.h.

◆ add() [2/2]

template<typename Node , size_t BinCount = 8>
BVH_ALWAYS_INLINE void bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::add ( const Bin bin)
inline

Definition at line 62 of file binned_sah_builder.h.

◆ get_cost()

template<typename Node , size_t BinCount = 8>
BVH_ALWAYS_INLINE Scalar bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::get_cost ( const SplitHeuristic< Scalar > &  sah) const
inline

Definition at line 53 of file binned_sah_builder.h.

Member Data Documentation

◆ bbox

template<typename Node , size_t BinCount = 8>
BBox bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::bbox = BBox::make_empty()

Definition at line 48 of file binned_sah_builder.h.

◆ prim_count

template<typename Node , size_t BinCount = 8>
size_t bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin::prim_count = 0

Definition at line 49 of file binned_sah_builder.h.

Collaboration diagram for bvh::v2::BinnedSahBuilder< Node, BinCount >::Bin:
[legend]

The documentation for this struct was generated from the following file: