Fermat
|
A context to pass to k-d tree builders
#include <kd_context.h>
Classes | |
struct | Context |
Cuda accessor struct. More... | |
Public Methods | |
Kd_context (thrust::device_vector< Kd_node > *nodes, thrust::device_vector< uint2 > *leaves, thrust::device_vector< uint2 > *ranges) | |
void | reserve_nodes (const uint32 n) |
void | reserve_leaves (const uint32 n) |
Context | get_context () |
Public Members | |
thrust::device_vector< Kd_node > * | m_nodes |
thrust::device_vector< uint2 > * | m_leaves |
thrust::device_vector< uint2 > * | m_ranges |
|
inline |
constructor
nodes | output node vector |
leaves | output leaf vector |
ranges | output node range vector: if not NULL, the i-th item will be set with the range of prims corresponding to the i-th node. |
|
inline |
return a cuda context
|
inline |
reserve space for more leaves
|
inline |
reserve space for more nodes