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 [4] |
| 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[4] |
One element for each type of heap located at the following indices:
D3D12_HEAP_TYPE_DEFAULTD3D12_HEAP_TYPE_UPLOADD3D12_HEAP_TYPE_READBACKD3D12_HEAP_TYPE_CUSTOM | DetailedStatistics D3D12MA::TotalStatistics::MemorySegmentGroup[2] |
One element for each memory segment group located at the following indices:
DXGI_MEMORY_SEGMENT_GROUP_LOCALDXGI_MEMORY_SEGMENT_GROUP_NON_LOCALMeaning 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 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.