Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext Struct Reference

Per-thread context used to manage memory allocations, also records some useful statistics. More...

#include <mitsuba/render/gkdtree.h>

Public Member Functions

 BuildContext (SizeType primCount, SizeType binCount)
 
size_t size ()
 
void printStats (ELogLevel level)
 
void accumulateStatisticsFrom (const BuildContext &ctx)
 

Public Attributes

OrderedChunkAllocator leftAlloc
 
OrderedChunkAllocator rightAlloc
 
BlockedVector< KDNode,(512
*1024/sizeof(KDNode)) > 
nodes
 
BlockedVector< IndexType,(512
*1024/sizeof(uint32_t)) > 
indices
 
ClassificationStorage classStorage
 
MinMaxBins minMaxBins
 
SizeType leafNodeCount
 
SizeType nonemptyLeafNodeCount
 
SizeType innerNodeCount
 
SizeType primIndexCount
 
SizeType retractedSplits
 
SizeType pruned
 

Detailed Description

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
struct mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext

Per-thread context used to manage memory allocations, also records some useful statistics.

Constructor & Destructor Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::BuildContext ( SizeType  primCount,
SizeType  binCount 
)
inline

Member Function Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
void mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::accumulateStatisticsFrom ( const BuildContext ctx)
inline
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
void mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::printStats ( ELogLevel  level)
inline
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
size_t mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::size ( )
inline

Member Data Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
ClassificationStorage mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::classStorage
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
BlockedVector<IndexType, (512*1024/sizeof(uint32_t)) > mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::indices
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::innerNodeCount
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::leafNodeCount
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
OrderedChunkAllocator mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::leftAlloc
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
MinMaxBins mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::minMaxBins
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
BlockedVector<KDNode, (512*1024/sizeof(KDNode)) > mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::nodes
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::nonemptyLeafNodeCount
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::primIndexCount
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::pruned
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
SizeType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::retractedSplits
template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
OrderedChunkAllocator mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::BuildContext::rightAlloc

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