HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CE_VDBGrid Class Reference

#include <CE_VDBGrid.h>

Public Member Functions

const cl::Bufferbuffer () const
 
bool hasBuffer () const
 If the current OpenCL buffer is valid. More...
 
void initFromVDB (const openvdb::GridBase &grid)
 

Protected Attributes

cl::Buffer myBuffer
 

Detailed Description

Definition at line 19 of file CE_VDBGrid.h.

Member Function Documentation

const cl::Buffer& CE_VDBGrid::buffer ( ) const
inline

Return the underlying OpenCL buffer that can be used in kernel invocations.

Definition at line 24 of file CE_VDBGrid.h.

bool CE_VDBGrid::hasBuffer ( ) const
inline

If the current OpenCL buffer is valid.

Definition at line 27 of file CE_VDBGrid.h.

void CE_VDBGrid::initFromVDB ( const openvdb::GridBase &  grid)

Initialize the CE_Grid from the supplied UT_VoxelArray. Note that in the case that UT_VoxelArray::isConstant(), this will be very fast and avoid allocating any actual GPU memory.

Member Data Documentation

cl::Buffer CE_VDBGrid::myBuffer
protected

Definition at line 36 of file CE_VDBGrid.h.


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