Direct3D 12 Memory Allocator
Loading...
Searching...
No Matches
Public Attributes | List of all members
D3D12MA::Statistics Struct Reference

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.
 

Detailed Description

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().

Member Data Documentation

◆ AllocationBytes

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.

◆ AllocationCount

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.

◆ BlockBytes

UINT64 D3D12MA::Statistics::BlockBytes

Number of bytes allocated in memory blocks.

◆ BlockCount

UINT D3D12MA::Statistics::BlockCount

Number of D3D12 memory blocks allocated - ID3D12Heap objects and committed resources.


The documentation for this struct was generated from the following file: