|
NTrace
GPU ray tracing framework
|
Cuda tracer for the k-d tree acceleration structure. Performs kd-tree traversal on the GPU. More...
#include <CudaKDTreeTracer.hpp>
Inherits FW::CudaVirtualTracer.
Public Member Functions | |
| CudaKDTreeTracer (void) | |
| Constructor. More... | |
| ~CudaKDTreeTracer (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 traversation of the k-d tree on the gpu. More... | |
| BVHLayout | getDesiredBVHLayout (void) const |
| void | setBVH (CudaAS *kdtree) |
| Sets k-d tree acceleration structure that will be traversed. More... | |
| F32 | traceBatch (RayBuffer &rays) |
| Traces given batch of rays. More... | |
Public Member Functions inherited from FW::CudaVirtualTracer | |
| virtual | ~CudaVirtualTracer (void) |
| void | setScene (Scene *scene) |
Additional Inherited Members | |
Public Attributes inherited from FW::CudaVirtualTracer | |
| Scene * | m_scene |
Cuda tracer for the k-d tree acceleration structure. Performs kd-tree traversal on the GPU.
Definition at line 20 of file CudaKDTreeTracer.hpp.
| CudaKDTreeTracer::CudaKDTreeTracer | ( | void | ) |
Constructor.
Definition at line 9 of file CudaKDTreeTracer.cpp.
| CudaKDTreeTracer::~CudaKDTreeTracer | ( | void | ) |
Destructor.
Definition at line 18 of file CudaKDTreeTracer.cpp.
Implements FW::CudaVirtualTracer.
Definition at line 45 of file CudaKDTreeTracer.hpp.
Sets k-d tree acceleration structure that will be traversed.
| kdtree | K-d tree to traverse. |
Implements FW::CudaVirtualTracer.
Definition at line 51 of file CudaKDTreeTracer.hpp.
Sets kernel that should perform the actual traversation of the k-d tree on the gpu.
| [in] | kernelName | Name of the kernel. |
Implements FW::CudaVirtualTracer.
Definition at line 24 of file CudaKDTreeTracer.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 38 of file CudaKDTreeTracer.hpp.
Traces given batch of rays.
| [in,out] | rays | Rays to be cast to the k-d tree. |
Implements FW::CudaVirtualTracer.
Definition at line 53 of file CudaKDTreeTracer.cpp.