NTrace
GPU ray tracing framework
|
BVH acceleration structure class. More...
#include <BVH.hpp>
Inherits FW::AccelerationStructure.
Classes | |
struct | BuildParams |
Stucture holding the BVH build parameters. More... | |
struct | Stats |
Sturcture for holding statistics about the BVH. More... | |
Public Member Functions | |
BVH (Scene *scene, const Platform &platform, const BuildParams ¶ms, Environment *env) | |
Constructor. More... | |
~BVH (void) | |
Destructor. More... | |
BVHNode * | getRoot (void) const |
Returns root node of the BVH. More... | |
void | trace (RayBuffer &rays, RayStats *stats=NULL) const |
CPU traversal. More... | |
Array< S32 > & | getTriIndices (void) |
Returns an array of triangle indices to which leaf nodes are pointig. These indices point to scene's triangle array. More... | |
const Array< S32 > & | getTriIndices (void) const |
Returns an array of triangle indices to which leaf nodes are pointig. These indices point to scene's triangle array. More... | |
![]() | |
AccelerationStructure (Scene *scene, const Platform &platform) | |
virtual | ~AccelerationStructure () |
Scene * | getScene (void) const |
const Platform & | getPlatform (void) const |
Additional Inherited Members | |
![]() | |
Scene * | m_scene |
Platform | m_platform |
BVH acceleration structure class.
Holds a BVH acceleration structure and also provides method for its CPU traversal.
BVH::BVH | ( | Scene * | scene, |
const Platform & | platform, | ||
const BuildParams & | params, | ||
Environment * | env | ||
) |