Open 3D Engine Atom Gem API Reference
23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <MemoryUsage.h>
Public Member Functions | |
HeapMemoryUsage (const HeapMemoryUsage &) | |
HeapMemoryUsage & | operator= (const HeapMemoryUsage &) |
bool | CanAllocate (size_t sizeInBytes) const |
This helper function checks whether a new allocation is within the budget. | |
void | Validate () |
Helper function to validate sizes. | |
Tracks memory usage for a specific heap in the system. The data is expected to adhere to the following constraints: 1) Reserved <= Budget (unless the budget is 0). 2) Resident <= Reserved.