Direct3D 12 Memory Allocator
|
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. | |
UINT64 | BlockBytes |
Number of bytes allocated in memory blocks. | |
UINT64 | AllocationBytes |
Total number of bytes occupied by all D3D12MA::Allocation objects. | |
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
.
UINT64 D3D12MA::Statistics::BlockBytes |
Number of bytes allocated in memory blocks.
UINT D3D12MA::Statistics::BlockCount |
Number of D3D12 memory blocks allocated - ID3D12Heap
objects and committed resources.