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