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

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
Scenem_scene
 

Detailed Description

Cuda tracer for the k-d tree acceleration structure. Performs kd-tree traversal on the GPU.

Definition at line 20 of file CudaKDTreeTracer.hpp.

Constructor & Destructor Documentation

CudaKDTreeTracer::CudaKDTreeTracer ( void  )

Constructor.

Definition at line 9 of file CudaKDTreeTracer.cpp.

CudaKDTreeTracer::~CudaKDTreeTracer ( void  )

Destructor.

Definition at line 18 of file CudaKDTreeTracer.cpp.

Member Function Documentation

BVHLayout FW::CudaKDTreeTracer::getDesiredBVHLayout ( void  ) const
inlinevirtual

Implements FW::CudaVirtualTracer.

Definition at line 45 of file CudaKDTreeTracer.hpp.

void FW::CudaKDTreeTracer::setBVH ( CudaAS kdtree)
inlinevirtual

Sets k-d tree acceleration structure that will be traversed.

Parameters
kdtreeK-d tree to traverse.

Implements FW::CudaVirtualTracer.

Definition at line 51 of file CudaKDTreeTracer.hpp.

void CudaKDTreeTracer::setKernel ( const String kernelName)
virtual

Sets kernel that should perform the actual traversation of the k-d tree on the gpu.

Parameters
[in]kernelNameName of the kernel.

Implements FW::CudaVirtualTracer.

Definition at line 24 of file CudaKDTreeTracer.cpp.

void FW::CudaKDTreeTracer::setMessageWindow ( Window window)
inlinevirtual

Sets message window for the CUDA compiler.

Used to print info about kernel compilation to main window (not the console).

Parameters
[in]windowDesired window.

Implements FW::CudaVirtualTracer.

Definition at line 38 of file CudaKDTreeTracer.hpp.

F32 CudaKDTreeTracer::traceBatch ( RayBuffer rays)
virtual

Traces given batch of rays.

Parameters
[in,out]raysRays to be cast to the k-d tree.
Returns
Launch time in seconds.

Implements FW::CudaVirtualTracer.

Definition at line 53 of file CudaKDTreeTracer.cpp.


The documentation for this class was generated from the following files: