![]() |
VR-Forces Developer's Guide
|
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 |
|
virtual |
destructor
|
delete |
not allowed
|
delete |
not allowed
|
protected |
constructor
|
delete |
not allowed
Upload memory budget accessors and mutators. Get or set the maximum allowed memory (in bytes) for GPU upload operations.
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.
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 |
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 |
Memory budget status. Returns true if the uploaded memory total exceeds the configured budget.
| friend makVrv::DtGpuArenaUploadState::DtGpuArenaUploadStateCreator |