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

Structure holding ray statistics. Also provides print to the console. These statistics are used in a CPU trace method provided by this class. More...

#include <BVH.hpp>

Public Member Functions

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

Public Attributes

S32 numRays
 Total number of rays. More...
 
S32 numTriangleTests
 Total number of ray-triangle tests. More...
 
S32 numNodeTests
 Total number of ray-node tests. More...
 
S32 numTreelets
 Total number of traversal steps. More...
 
Platform platform
 Platform settings of the BVH. Set by whoever sets the stats. More...
 

Detailed Description

Structure holding ray statistics. Also provides print to the console. These statistics are used in a CPU trace method provided by this class.

Definition at line 45 of file BVH.hpp.

Constructor & Destructor Documentation

FW::RayStats::RayStats ( )
inline

Constructor.

Definition at line 50 of file BVH.hpp.

Member Function Documentation

void FW::RayStats::clear ( void  )
inline

Resets the statistics to the default values.

Definition at line 55 of file BVH.hpp.

void FW::RayStats::print ( void  ) const
inline

Prints ray statistics to the console.

Definition at line 60 of file BVH.hpp.

Member Data Documentation

S32 FW::RayStats::numNodeTests

Total number of ray-node tests.

Definition at line 64 of file BVH.hpp.

S32 FW::RayStats::numRays

Total number of rays.

Definition at line 62 of file BVH.hpp.

S32 FW::RayStats::numTreelets

Total number of traversal steps.

Definition at line 65 of file BVH.hpp.

S32 FW::RayStats::numTriangleTests

Total number of ray-triangle tests.

Definition at line 63 of file BVH.hpp.

Platform FW::RayStats::platform

Platform settings of the BVH. Set by whoever sets the stats.

Definition at line 66 of file BVH.hpp.


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