NTrace
GPU ray tracing framework
|
CUDA tracer for the BVH acceleration structure. Performs BVH traversal on the GPU. More...
#include <CudaBVHTracer.hpp>
Inherits FW::CudaVirtualTracer.
Public Member Functions | |
CudaBVHTracer (void) | |
Constructor. More... | |
~CudaBVHTracer (void) | |
Destructor. More... | |
void | setMessageWindow (Window *window) |
Sets message window for the CUDA compiler. More... | |
void | setKernel (const String &kernelName) |
Sets kernel that should perform the actual traversal of the k-d tree on the gpu. More... | |
BVHLayout | getDesiredBVHLayout (void) const |
void | setBVH (CudaAS *bvh) |
Sets BVH acceleration structure that will be traversed. More... | |
F32 | traceBatch (RayBuffer &rays) |
Traces given batch of rays. More... | |
![]() | |
virtual | ~CudaVirtualTracer (void) |
void | setScene (Scene *scene) |
Additional Inherited Members | |
![]() | |
Scene * | m_scene |
CUDA tracer for the BVH acceleration structure. Performs BVH traversal on the GPU.
Definition at line 46 of file CudaBVHTracer.hpp.
CudaBVHTracer::CudaBVHTracer | ( | void | ) |
Constructor.
Definition at line 36 of file CudaBVHTracer.cpp.
CudaBVHTracer::~CudaBVHTracer | ( | void | ) |
Destructor.
Definition at line 46 of file CudaBVHTracer.cpp.
Implements FW::CudaVirtualTracer.
Definition at line 75 of file CudaBVHTracer.hpp.
Sets BVH acceleration structure that will be traversed.
[in] | bvh | BVH to traverse. |
Implements FW::CudaVirtualTracer.
Definition at line 81 of file CudaBVHTracer.hpp.
Sets kernel that should perform the actual traversal of the k-d tree on the gpu.
[in] | kernelName | Name of the kernel. |
Implements FW::CudaVirtualTracer.
Definition at line 52 of file CudaBVHTracer.cpp.
Sets message window for the CUDA compiler.
Used to print info about kernel compilation to main window (not the console).
[in] | window | Desired window. |
Implements FW::CudaVirtualTracer.
Definition at line 64 of file CudaBVHTracer.hpp.
Traces given batch of rays.
[in,out] | rays | Rays to be cast to the k-d tree. |
Implements FW::CudaVirtualTracer.
Definition at line 88 of file CudaBVHTracer.cpp.