Struct vk_mem_alloc::ffi::VmaDefragmentationStats
source · [−]#[repr(C)]pub struct VmaDefragmentationStats {
pub bytesMoved: DeviceSize,
pub bytesFreed: DeviceSize,
pub allocationsMoved: u32,
pub deviceMemoryBlocksFreed: u32,
}
Expand description
Statistics returned for defragmentation process in function vmaEndDefragmentation().
Fields
bytesMoved: DeviceSize
Total number of bytes that have been copied while moving allocations to different places.
bytesFreed: DeviceSize
Total number of bytes that have been released to the system by freeing empty VkDeviceMemory
objects.
allocationsMoved: u32
Number of allocations that have been moved to different places.
deviceMemoryBlocksFreed: u32
Number of empty VkDeviceMemory
objects that have been released to the system.
Trait Implementations
sourceimpl Clone for VmaDefragmentationStats
impl Clone for VmaDefragmentationStats
sourcefn clone(&self) -> VmaDefragmentationStats
fn clone(&self) -> VmaDefragmentationStats
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 VmaDefragmentationStats
impl Debug for VmaDefragmentationStats
impl Copy for VmaDefragmentationStats
Auto Trait Implementations
impl RefUnwindSafe for VmaDefragmentationStats
impl Send for VmaDefragmentationStats
impl Sync for VmaDefragmentationStats
impl Unpin for VmaDefragmentationStats
impl UnwindSafe for VmaDefragmentationStats
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