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

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...
 
- 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 BVH acceleration structure. Performs BVH traversal on the GPU.

Definition at line 46 of file CudaBVHTracer.hpp.

Constructor & Destructor Documentation

CudaBVHTracer::CudaBVHTracer ( void  )

Constructor.

Definition at line 36 of file CudaBVHTracer.cpp.

CudaBVHTracer::~CudaBVHTracer ( void  )

Destructor.

Definition at line 46 of file CudaBVHTracer.cpp.

Member Function Documentation

BVHLayout FW::CudaBVHTracer::getDesiredBVHLayout ( void  ) const
inlinevirtual
Returns
Kernel's desired layout of the BVH buffers.

Implements FW::CudaVirtualTracer.

Definition at line 75 of file CudaBVHTracer.hpp.

void FW::CudaBVHTracer::setBVH ( CudaAS bvh)
inlinevirtual

Sets BVH acceleration structure that will be traversed.

Parameters
[in]bvhBVH to traverse.

Implements FW::CudaVirtualTracer.

Definition at line 81 of file CudaBVHTracer.hpp.

void CudaBVHTracer::setKernel ( const String kernelName)
virtual

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

Parameters
[in]kernelNameName of the kernel.

Implements FW::CudaVirtualTracer.

Definition at line 52 of file CudaBVHTracer.cpp.

void FW::CudaBVHTracer::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 64 of file CudaBVHTracer.hpp.

F32 CudaBVHTracer::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 88 of file CudaBVHTracer.cpp.


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