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

Sturcture for holding statistics about the BVH. More...

#include <BVH.hpp>

Public Member Functions

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

Public Attributes

F32 SAHCost
 Total sah cost of the BVH. More...
 
S32 branchingFactor
 Number of children nodes per one parent node. More...
 
S32 numInnerNodes
 Total number of inner nodes. More...
 
S32 numLeafNodes
 Total number of leaf nodes. More...
 
S32 numChildNodes
 Total number of children nodes. More...
 
S32 numTris
 Total number of triangles. More...
 

Detailed Description

Sturcture for holding statistics about the BVH.

Definition at line 81 of file BVH.hpp.

Constructor & Destructor Documentation

FW::BVH::Stats::Stats ( )
inline

Constructor.

Definition at line 86 of file BVH.hpp.

Member Function Documentation

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

Resets the statistics to the default values.

Definition at line 91 of file BVH.hpp.

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

Prints the statistics to the console.

Definition at line 96 of file BVH.hpp.

Member Data Documentation

S32 FW::BVH::Stats::branchingFactor

Number of children nodes per one parent node.

Definition at line 99 of file BVH.hpp.

S32 FW::BVH::Stats::numChildNodes

Total number of children nodes.

Definition at line 102 of file BVH.hpp.

S32 FW::BVH::Stats::numInnerNodes

Total number of inner nodes.

Definition at line 100 of file BVH.hpp.

S32 FW::BVH::Stats::numLeafNodes

Total number of leaf nodes.

Definition at line 101 of file BVH.hpp.

S32 FW::BVH::Stats::numTris

Total number of triangles.

Definition at line 103 of file BVH.hpp.

F32 FW::BVH::Stats::SAHCost

Total sah cost of the BVH.

Definition at line 98 of file BVH.hpp.


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