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

#include <IMX_VDB.h>

Public Member Functions

 Topology ()=default
 
 Topology (cl::Buffer tilestarts, exint leafcount, exint lowercount, exint uppercount)
 
 Topology (const openvdb::GridBase &grid)
 
 Topology (const CE_BufferHostByte *cpugrid)
 
 ~Topology ()
 
cl::Buffer getGPUTileStarts (exint &tilecount) const
 Return a gpu version. More...
 
UT_SharedPtr< UT_Array
< UT_Vector3i > > 
getCPUTileStarts () const
 
void setDenseLeaves (bool isdense)
 
bool denseLeaves () const
 
exint leafCount () const
 
exint lowerCount () const
 
exint upperCount () const
 
void voxelBounds (UT_Vector3i &lower, UT_Vector3i &upper) const
 
int64 getMemoryUsage () const
 
int64 getDeviceMemoryUsage () const
 

Protected Attributes

UT_SharedPtr< UT_Array
< UT_Vector3i > > 
myCPUTileStarts
 
cl::Buffer myGPUTileStarts
 Tile starts is a shared buffer, so isn't re-written to. More...
 
exint myGPUTileStartsCount = -1
 
exint myLeafCount = 0
 Required to rebuild: More...
 
exint myLowerCount = 0
 
exint myUpperCount = 0
 
bool myDenseLeaves = false
 

Detailed Description

Definition at line 270 of file IMX_VDB.h.

Constructor & Destructor Documentation

IMX_VDB::Topology::Topology ( )
default
IMX_VDB::Topology::Topology ( cl::Buffer  tilestarts,
exint  leafcount,
exint  lowercount,
exint  uppercount 
)
inline

Definition at line 274 of file IMX_VDB.h.

IMX_VDB::Topology::Topology ( const openvdb::GridBase &  grid)
IMX_VDB::Topology::Topology ( const CE_BufferHostByte cpugrid)
IMX_VDB::Topology::~Topology ( )

Member Function Documentation

bool IMX_VDB::Topology::denseLeaves ( ) const
inline

Definition at line 292 of file IMX_VDB.h.

UT_SharedPtr<UT_Array<UT_Vector3i> > IMX_VDB::Topology::getCPUTileStarts ( ) const
int64 IMX_VDB::Topology::getDeviceMemoryUsage ( ) const
cl::Buffer IMX_VDB::Topology::getGPUTileStarts ( exint tilecount) const

Return a gpu version.

int64 IMX_VDB::Topology::getMemoryUsage ( ) const
exint IMX_VDB::Topology::leafCount ( ) const
inline

Definition at line 294 of file IMX_VDB.h.

exint IMX_VDB::Topology::lowerCount ( ) const
inline

Definition at line 295 of file IMX_VDB.h.

void IMX_VDB::Topology::setDenseLeaves ( bool  isdense)
inline

Definition at line 291 of file IMX_VDB.h.

exint IMX_VDB::Topology::upperCount ( ) const
inline

Definition at line 296 of file IMX_VDB.h.

void IMX_VDB::Topology::voxelBounds ( UT_Vector3i lower,
UT_Vector3i upper 
) const

Member Data Documentation

UT_SharedPtr<UT_Array<UT_Vector3i> > IMX_VDB::Topology::myCPUTileStarts
protected

Definition at line 304 of file IMX_VDB.h.

bool IMX_VDB::Topology::myDenseLeaves = false
protected

Definition at line 315 of file IMX_VDB.h.

cl::Buffer IMX_VDB::Topology::myGPUTileStarts
protected

Tile starts is a shared buffer, so isn't re-written to.

Definition at line 306 of file IMX_VDB.h.

exint IMX_VDB::Topology::myGPUTileStartsCount = -1
protected

Definition at line 307 of file IMX_VDB.h.

exint IMX_VDB::Topology::myLeafCount = 0
protected

Required to rebuild:

Definition at line 310 of file IMX_VDB.h.

exint IMX_VDB::Topology::myLowerCount = 0
protected

Definition at line 311 of file IMX_VDB.h.

exint IMX_VDB::Topology::myUpperCount = 0
protected

Definition at line 312 of file IMX_VDB.h.


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