Fermat
Classes | Public Methods | Public Members | List of all members
cugar::cuda::Kd_context Struct Reference

Detailed description

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
 

Constructor & Destructor Documentation

◆ Kd_context()

cugar::cuda::Kd_context::Kd_context ( thrust::device_vector< Kd_node > *  nodes,
thrust::device_vector< uint2 > *  leaves,
thrust::device_vector< uint2 > *  ranges 
)
inline

constructor

Parameters
nodesoutput node vector
leavesoutput leaf vector
rangesoutput node range vector: if not NULL, the i-th item will be set with the range of prims corresponding to the i-th node.

Member Function Documentation

◆ get_context()

Context cugar::cuda::Kd_context::get_context ( )
inline

return a cuda context

◆ reserve_leaves()

void cugar::cuda::Kd_context::reserve_leaves ( const uint32  n)
inline

reserve space for more leaves

◆ reserve_nodes()

void cugar::cuda::Kd_context::reserve_nodes ( const uint32  n)
inline

reserve space for more nodes


The documentation for this struct was generated from the following file: