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.
VmaDefragmentationMove Struct Reference

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

#include <vk_mem_alloc.h>

Public Attributes

VmaDefragmentationMoveOperation operation
 Operation to be performed on the allocation by vmaEndDefragmentationPass(). Default value is VMA_DEFRAGMENTATION_MOVE_OPERATION_COPY. You can modify it.
 
VmaAllocation VMA_NOT_NULL srcAllocation
 Allocation that should be moved.
 
VmaAllocation VMA_NOT_NULL dstTmpAllocation
 Temporary allocation pointing to destination memory that will replace srcAllocation. More...
 

Detailed Description

Single move of an allocation to be done for defragmentation.

Member Data Documentation

◆ dstTmpAllocation

VmaAllocation VMA_NOT_NULL VmaDefragmentationMove::dstTmpAllocation

Temporary allocation pointing to destination memory that will replace srcAllocation.

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 binding new buffer/image to the destination memory using e.g. vmaBindBufferMemory(). vmaEndDefragmentationPass() will destroy it and make srcAllocation point to this memory.

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