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
 
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 250 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 254 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 272 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 274 of file IMX_VDB.h.

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

Definition at line 275 of file IMX_VDB.h.

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

Definition at line 271 of file IMX_VDB.h.

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

Definition at line 276 of file IMX_VDB.h.

Member Data Documentation

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

Definition at line 282 of file IMX_VDB.h.

bool IMX_VDB::Topology::myDenseLeaves = false
protected

Definition at line 293 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 284 of file IMX_VDB.h.

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

Definition at line 285 of file IMX_VDB.h.

exint IMX_VDB::Topology::myLeafCount = 0
protected

Required to rebuild:

Definition at line 288 of file IMX_VDB.h.

exint IMX_VDB::Topology::myLowerCount = 0
protected

Definition at line 289 of file IMX_VDB.h.

exint IMX_VDB::Topology::myUpperCount = 0
protected

Definition at line 290 of file IMX_VDB.h.


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