NTrace
GPU ray tracing framework
|
Cuda friendly KDTree representation. More...
#include <CudaKDTree.hpp>
Inherits FW::CudaAS.
Public Member Functions | |
BVHLayout | getLayout (void) const |
Returns layout of buffers. More... | |
CudaKDTree (const KDTree &kdtree) | |
Constructor. [in] kdtree KDTree to convert. More... | |
CudaKDTree (CudaKDTree &other) | |
Copy constructor. [in] kdtree KDTree to copy. More... | |
CudaKDTree (InputStream &in) | |
Constructs CudaKDTree from an input stream. [in] in Source input stream. More... | |
~CudaKDTree (void) | |
Destructor. More... | |
Buffer & | getNodeBuffer (void) |
Returns node buffer. More... | |
Buffer & | getTriIndexBuffer (void) |
Returns triangle index buffer. More... | |
Buffer & | getTriWoopBuffer (void) |
Returns buffer of woopified triangles. More... | |
void | serialize (OutputStream &out) |
Writes CudaKDTree to a given output stream. More... | |
const AABB & | getBBox (void) const |
Returns bounding box of the CudaKDTree's source scene. More... | |
![]() | |
virtual | ~CudaAS (void) |
Destructor. More... | |
Cuda friendly KDTree representation.
Converts KDTree data to buffers optimal for traversal and storage.
Definition at line 20 of file CudaKDTree.hpp.
|
explicit |
Constructor. [in] kdtree KDTree to convert.
Definition at line 8 of file CudaKDTree.cpp.
|
inline |
Copy constructor. [in] kdtree KDTree to copy.
Definition at line 35 of file CudaKDTree.hpp.
|
explicit |
Constructs CudaKDTree from an input stream. [in] in Source input stream.
Definition at line 16 of file CudaKDTree.cpp.
CudaKDTree::~CudaKDTree | ( | void | ) |
Destructor.
Definition at line 25 of file CudaKDTree.cpp.
Returns bounding box of the CudaKDTree's source scene.
Definition at line 77 of file CudaKDTree.hpp.
Returns layout of buffers.
Implements FW::CudaAS.
Definition at line 23 of file CudaKDTree.hpp.
Returns node buffer.
Implements FW::CudaAS.
Definition at line 52 of file CudaKDTree.hpp.
Returns triangle index buffer.
Implements FW::CudaAS.
Definition at line 58 of file CudaKDTree.hpp.
Returns buffer of woopified triangles.
Implements FW::CudaAS.
Definition at line 65 of file CudaKDTree.hpp.
|
virtual |
Writes CudaKDTree to a given output stream.
[in] | out | Output stream to write CudaKDTree to. |
Implements FW::CudaAS.
Definition at line 31 of file CudaKDTree.cpp.