VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtGpuArenaUploadState Class Reference

Manages and tracks memory usage statistics for GPU resource upload operations.

DtGpuArenaUploadState maintains the state of an ongoing upload for a GPU arena, including the memory budget, buffer memory uploaded, texture memory uploaded, and the number of objects remaining to upload. It provides methods to update and query these statistics, and to determine if the upload operation has exceeded the allocated memory budget.

Instances are created using DtGpuArenaUploadStateCreator.

Public Member Functions

virtual ~DtGpuArenaUploadState ()
 
 DtGpuArenaUploadState ()=delete
 
DtGpuArenaUploadState & operator= (const DtGpuArenaUploadState &rhs)=delete
 
 DtGpuArenaUploadState (const DtGpuArenaUploadState &rhs)=delete
 
virtual unsigned int uploadMemoryBudget () const
 
virtual void setUploadMemoryBudget (unsigned int budget)
 
virtual unsigned int uploadedBufferMemory () const
 
virtual void setUploadedBufferMemory (unsigned int bytes)
 
virtual void addToUploadedBufferMemory (unsigned int bytes)
 
virtual unsigned int uploadedTextureMemory () const
 
virtual void setUploadedTextureMemory (unsigned int bytes)
 
virtual void addToUploadedTextureMemory (unsigned int bytes)
 
virtual unsigned int objectsRemaining () const
 
virtual void setObjectsRemaining (unsigned int count)
 
virtual void addToObjectsRemaining (unsigned int count)
 
virtual bool isMemoryBudgetExceeded () const
 

Public Attributes

friend DtGpuArenaUploadStateCreator
 

Protected Member Functions

 DtGpuArenaUploadState (DtDe &de)
 

Protected Attributes

unsigned int myUploadMemoryBudget
 
unsigned int myUploadedBufferMemory
 
unsigned int myUploadedTextureMemory
 
unsigned int myObjectsRemaining
 

Constructor & Destructor Documentation

virtual makVrv::DtGpuArenaUploadState::~DtGpuArenaUploadState ( )
virtual

destructor

makVrv::DtGpuArenaUploadState::DtGpuArenaUploadState ( )
delete

not allowed

makVrv::DtGpuArenaUploadState::DtGpuArenaUploadState ( const DtGpuArenaUploadState &  rhs)
delete

not allowed

makVrv::DtGpuArenaUploadState::DtGpuArenaUploadState ( DtDe &  de)
protected

constructor

Member Function Documentation

DtGpuArenaUploadState& makVrv::DtGpuArenaUploadState::operator= ( const DtGpuArenaUploadState &  rhs)
delete

not allowed

virtual unsigned int makVrv::DtGpuArenaUploadState::uploadMemoryBudget ( ) const
virtual

Upload memory budget accessors and mutators. Get or set the maximum allowed memory (in bytes) for GPU upload operations.

virtual void makVrv::DtGpuArenaUploadState::setUploadMemoryBudget ( unsigned int  budget)
virtual
virtual unsigned int makVrv::DtGpuArenaUploadState::uploadedBufferMemory ( ) const
virtual

Uploaded buffer memory accessors and mutators. Track the cumulative amount of buffer memory (in bytes) uploaded to the GPU. Use addToUploadedBufferMemory to incrementally update the total.

virtual void makVrv::DtGpuArenaUploadState::setUploadedBufferMemory ( unsigned int  bytes)
virtual
virtual void makVrv::DtGpuArenaUploadState::addToUploadedBufferMemory ( unsigned int  bytes)
virtual
virtual unsigned int makVrv::DtGpuArenaUploadState::uploadedTextureMemory ( ) const
virtual

Uploaded texture memory accessors and mutators. Track the cumulative amount of texture memory (in bytes) uploaded to the GPU. Use addToUploadedTextureMemory to incrementally update the total.

virtual void makVrv::DtGpuArenaUploadState::setUploadedTextureMemory ( unsigned int  bytes)
virtual
virtual void makVrv::DtGpuArenaUploadState::addToUploadedTextureMemory ( unsigned int  bytes)
virtual
virtual unsigned int makVrv::DtGpuArenaUploadState::objectsRemaining ( ) const
virtual

Remaining objects accessors and mutators. Get or set the number of objects still pending upload to the GPU. Use addToObjectsRemaining to incrementally update the total.

virtual void makVrv::DtGpuArenaUploadState::setObjectsRemaining ( unsigned int  count)
virtual
virtual void makVrv::DtGpuArenaUploadState::addToObjectsRemaining ( unsigned int  count)
virtual
virtual bool makVrv::DtGpuArenaUploadState::isMemoryBudgetExceeded ( ) const
virtual

Memory budget status. Returns true if the uploaded memory total exceeds the configured budget.

Member Data Documentation

friend makVrv::DtGpuArenaUploadState::DtGpuArenaUploadStateCreator
unsigned int makVrv::DtGpuArenaUploadState::myUploadMemoryBudget
protected
unsigned int makVrv::DtGpuArenaUploadState::myUploadedBufferMemory
protected
unsigned int makVrv::DtGpuArenaUploadState::myUploadedTextureMemory
protected
unsigned int makVrv::DtGpuArenaUploadState::myObjectsRemaining
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)