NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::KDTree::Stats Struct Reference

Structure holding statistics about k-d tree. More...

#include <KDTree.hpp>

Public Member Functions

 Stats ()
 Constructor. More...
 
void clear ()
 Resets data to default values. More...
 
void print () const
 Prints statistics to stdout. More...
 

Public Attributes

S32 numInnerNodes
 Number of inner nodes. More...
 
S32 numLeafNodes
 Number of leaf nodes. More...
 
S32 numChildNodes
 Number of child nodes. More...
 
S32 numTris
 Triangle count of the source scene. More...
 
S32 numEmptyLeaves
 Number of empty leaves. More...
 
F32 percentDuplicates
 Percentage ratio of duplicated references to initial number of references (which is same as triangle count). More...
 

Detailed Description

Structure holding statistics about k-d tree.

Definition at line 57 of file KDTree.hpp.

Constructor & Destructor Documentation

FW::KDTree::Stats::Stats ( )
inline

Constructor.

Definition at line 62 of file KDTree.hpp.

Member Function Documentation

void FW::KDTree::Stats::clear ( void  )
inline

Resets data to default values.

Definition at line 67 of file KDTree.hpp.

void FW::KDTree::Stats::print ( void  ) const
inline

Prints statistics to stdout.

Definition at line 72 of file KDTree.hpp.

Member Data Documentation

S32 FW::KDTree::Stats::numChildNodes

Number of child nodes.

Definition at line 76 of file KDTree.hpp.

S32 FW::KDTree::Stats::numEmptyLeaves

Number of empty leaves.

Definition at line 78 of file KDTree.hpp.

S32 FW::KDTree::Stats::numInnerNodes

Number of inner nodes.

Definition at line 74 of file KDTree.hpp.

S32 FW::KDTree::Stats::numLeafNodes

Number of leaf nodes.

Definition at line 75 of file KDTree.hpp.

S32 FW::KDTree::Stats::numTris

Triangle count of the source scene.

Definition at line 77 of file KDTree.hpp.

F32 FW::KDTree::Stats::percentDuplicates

Percentage ratio of duplicated references to initial number of references (which is same as triangle count).

Definition at line 79 of file KDTree.hpp.


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