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

Single move of an allocation to be done for defragmentation. More...

#include <D3D12MemAlloc.h>

Public Attributes

DEFRAGMENTATION_MOVE_OPERATION Operation
 Operation to be performed on the allocation by DefragmentationContext::EndPass(). Default value is DEFRAGMENTATION_MOVE_OPERATION_COPY. You can modify it.
 
AllocationpSrcAllocation
 Allocation that should be moved.
 
AllocationpDstTmpAllocation
 Temporary allocation pointing to destination memory that will replace pSrcAllocation.
 

Detailed Description

Single move of an allocation to be done for defragmentation.

Member Data Documentation

◆ Operation

DEFRAGMENTATION_MOVE_OPERATION D3D12MA::DEFRAGMENTATION_MOVE::Operation

Operation to be performed on the allocation by DefragmentationContext::EndPass(). Default value is DEFRAGMENTATION_MOVE_OPERATION_COPY. You can modify it.

◆ pDstTmpAllocation

Allocation* D3D12MA::DEFRAGMENTATION_MOVE::pDstTmpAllocation

Temporary allocation pointing to destination memory that will replace pSrcAllocation.

Use it to retrieve new ID3D12Heap and offset to create new ID3D12Resource and then store it here via Allocation::SetResource().

Warning
Do not store this allocation in your data structures! It exists only temporarily, for the duration of the defragmentation pass, to be used for storing newly created resource. DefragmentationContext::EndPass() will destroy it and make pSrcAllocation point to this memory.

◆ pSrcAllocation

Allocation* D3D12MA::DEFRAGMENTATION_MOVE::pSrcAllocation

Allocation that should be moved.


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