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.
|
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: More... | |
DetailedStatistics | MemorySegmentGroup [2] |
One element for each memory segment group located at the following indices: More... | |
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_DEFAULT
D3D12_HEAP_TYPE_UPLOAD
D3D12_HEAP_TYPE_READBACK
D3D12_HEAP_TYPE_CUSTOM
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
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.