Direct3D 12 Memory Allocator
Loading...
Searching...
No Matches
Public Member Functions | List of all members
D3D12MA::DefragmentationContext Class Reference

Represents defragmentation process in progress. More...

#include <D3D12MemAlloc.h>

Inheritance diagram for D3D12MA::DefragmentationContext:

Public Member Functions

HRESULT BeginPass (DEFRAGMENTATION_PASS_MOVE_INFO *pPassInfo)
 Starts single defragmentation pass.
 
HRESULT EndPass (DEFRAGMENTATION_PASS_MOVE_INFO *pPassInfo)
 Ends single defragmentation pass.
 
void GetStats (DEFRAGMENTATION_STATS *pStats)
 Returns statistics of the defragmentation performed so far.
 

Detailed Description

Represents defragmentation process in progress.

You can create this object using Allocator::BeginDefragmentation (for default pools) or Pool::BeginDefragmentation (for a custom pool).

Member Function Documentation

◆ BeginPass()

HRESULT D3D12MA::DefragmentationContext::BeginPass ( DEFRAGMENTATION_PASS_MOVE_INFO * pPassInfo)

Starts single defragmentation pass.

Parameters
[out]pPassInfoComputed informations for current pass.
Returns

◆ EndPass()

HRESULT D3D12MA::DefragmentationContext::EndPass ( DEFRAGMENTATION_PASS_MOVE_INFO * pPassInfo)

Ends single defragmentation pass.

Parameters
pPassInfoComputed informations for current pass filled by DefragmentationContext::BeginPass() and possibly modified by you.
Returns
Returns S_OK if no more moves are possible or S_FALSE if more defragmentations are possible.

Ends incremental defragmentation pass and commits all defragmentation moves from pPassInfo. After this call:

If no more moves are possible you can end whole defragmentation.

◆ GetStats()

void D3D12MA::DefragmentationContext::GetStats ( DEFRAGMENTATION_STATS * pStats)

Returns statistics of the defragmentation performed so far.


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