Struct vk_mem_alloc::ffi::VmaDefragmentationInfo
source · [−]#[repr(C)]pub struct VmaDefragmentationInfo {
pub flags: VmaDefragmentationFlags,
pub pool: VmaPool,
pub maxBytesPerPass: DeviceSize,
pub maxAllocationsPerPass: u32,
}
Expand description
\brief Parameters for defragmentation.
To be used with function vmaBeginDefragmentation().
Fields
flags: VmaDefragmentationFlags
\brief Use combination of #VmaDefragmentationFlagBits.
pool: VmaPool
\brief Custom pool to be defragmented.
If null then default pools will undergo defragmentation process.
maxBytesPerPass: DeviceSize
\brief Maximum numbers of bytes that can be copied during single pass, while moving allocations to different places.
0
means no limit.
maxAllocationsPerPass: u32
\brief Maximum number of allocations that can be moved during single pass to a different place.
0
means no limit.
Auto Trait Implementations
impl RefUnwindSafe for VmaDefragmentationInfo
impl !Send for VmaDefragmentationInfo
impl !Sync for VmaDefragmentationInfo
impl Unpin for VmaDefragmentationInfo
impl UnwindSafe for VmaDefragmentationInfo
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