Direct3D 12 Memory Allocator
|
General statistics from current state of the allocator - total memory usage across all memory heaps and segments. More...
#include <D3D12MemAlloc.h>
Public Attributes | |
DetailedStatistics | HeapType [5] |
One element for each type of heap located at the following indices: | |
DetailedStatistics | MemorySegmentGroup [2] |
One element for each memory segment group located at the following indices: | |
DetailedStatistics | Total |
Total statistics from all memory allocated from D3D12. | |
General statistics from current state of the allocator - total memory usage across all memory heaps and segments.
These are slower to calculate. Use for debugging purposes. See function D3D12MA::Allocator::CalculateStatistics().
DetailedStatistics D3D12MA::TotalStatistics::HeapType[5] |
One element for each type of heap located at the following indices:
D3D12_HEAP_TYPE_DEFAULT
D3D12_HEAP_TYPE_UPLOAD
D3D12_HEAP_TYPE_READBACK
D3D12_HEAP_TYPE_CUSTOM
D3D12_HEAP_TYPE_GPU_UPLOAD
DetailedStatistics D3D12MA::TotalStatistics::MemorySegmentGroup[2] |
One element for each memory segment group located at the following indices:
DXGI_MEMORY_SEGMENT_GROUP_LOCAL
DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL
Meaning of these segment groups is:
IsUMA() == FALSE
(discrete graphics card):DXGI_MEMORY_SEGMENT_GROUP_LOCAL
(index 0) represents GPU memory (resources allocated in D3D12_HEAP_TYPE_DEFAULT
, D3D12_HEAP_TYPE_GPU_UPLOAD
or D3D12_MEMORY_POOL_L1
).DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL
(index 1) represents system memory (resources allocated in D3D12_HEAP_TYPE_UPLOAD
, D3D12_HEAP_TYPE_READBACK
, or D3D12_MEMORY_POOL_L0
).IsUMA() == TRUE
(integrated graphics chip):DXGI_MEMORY_SEGMENT_GROUP_LOCAL
= (index 0) represents memory shared for all the resources.DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL
= (index 1) is unused and always 0. DetailedStatistics D3D12MA::TotalStatistics::Total |
Total statistics from all memory allocated from D3D12.