#[repr(C)]pub struct DefragmentationMove {
pub operation: VmaDefragmentationMoveOperation,
pub srcAllocation: *mut VmaAllocation_T,
pub dstTmpAllocation: *mut VmaAllocation_T,
}Expand description
Single move of an allocation to be done for defragmentation.
Fields§
§operation: VmaDefragmentationMoveOperationOperation to be performed on the allocation by vmaEndDefragmentationPass(). Default value is #VMA_DEFRAGMENTATION_MOVE_OPERATION_COPY. You can modify it.
srcAllocation: *mut VmaAllocation_TAllocation that should be moved.
dstTmpAllocation: *mut VmaAllocation_T\brief 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.
Trait Implementations§
Source§impl Clone for VmaDefragmentationMove
impl Clone for VmaDefragmentationMove
Source§fn clone(&self) -> VmaDefragmentationMove
fn clone(&self) -> VmaDefragmentationMove
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VmaDefragmentationMove
impl Debug for VmaDefragmentationMove
impl Copy for VmaDefragmentationMove
Auto Trait Implementations§
impl Freeze for VmaDefragmentationMove
impl RefUnwindSafe for VmaDefragmentationMove
impl !Send for VmaDefragmentationMove
impl !Sync for VmaDefragmentationMove
impl Unpin for VmaDefragmentationMove
impl UnwindSafe for VmaDefragmentationMove
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more