Open 3D Engine Atom Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Calculated statistics of memory usage e.g. in a specific memory heap type, memory segment group, custom pool, or total. More...
#include <D3D12MemAlloc.h>
Public Attributes | |
UINT | BlockCount |
Number of D3D12 memory blocks allocated - ID3D12Heap objects and committed resources. | |
UINT | AllocationCount |
Number of D3D12MA::Allocation objects allocated. More... | |
UINT64 | BlockBytes |
Number of bytes allocated in memory blocks. | |
UINT64 | AllocationBytes |
Total number of bytes occupied by all D3D12MA::Allocation objects. More... | |
Calculated statistics of memory usage e.g. in a specific memory heap type, memory segment group, custom pool, or total.
These are fast to calculate. See functions: D3D12MA::Allocator::GetBudget(), D3D12MA::Pool::GetStatistics().
UINT64 D3D12MA::Statistics::AllocationBytes |
Total number of bytes occupied by all D3D12MA::Allocation objects.
Always less or equal than BlockBytes
. Difference (BlockBytes - AllocationBytes)
is the amount of memory allocated from D3D12 but unused by any D3D12MA::Allocation.
UINT D3D12MA::Statistics::AllocationCount |
Number of D3D12MA::Allocation objects allocated.
Committed allocations have their own blocks, so each one adds 1 to AllocationCount
as well as BlockCount
.