Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
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

◆ 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.

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