Struct vk_mem_alloc::ffi::VmaDeviceMemoryCallbacks
source · [−]#[repr(C)]pub struct VmaDeviceMemoryCallbacks {
pub pfnAllocate: PFN_vmaAllocateDeviceMemoryFunction,
pub pfnFree: PFN_vmaFreeDeviceMemoryFunction,
pub pUserData: *mut c_void,
}
Expand description
\brief Set of callbacks that the library will call for vkAllocateMemory
and vkFreeMemory
.
Provided for informative purpose, e.g. to gather statistics about number of allocations or total amount of memory allocated in Vulkan.
Used in VmaAllocatorCreateInfo::pDeviceMemoryCallbacks.
Fields
pfnAllocate: PFN_vmaAllocateDeviceMemoryFunction
Optional, can be null.
pfnFree: PFN_vmaFreeDeviceMemoryFunction
Optional, can be null.
pUserData: *mut c_void
Optional, can be null.
Trait Implementations
sourceimpl Clone for VmaDeviceMemoryCallbacks
impl Clone for VmaDeviceMemoryCallbacks
sourcefn clone(&self) -> VmaDeviceMemoryCallbacks
fn clone(&self) -> VmaDeviceMemoryCallbacks
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 VmaDeviceMemoryCallbacks
impl Debug for VmaDeviceMemoryCallbacks
impl Copy for VmaDeviceMemoryCallbacks
Auto Trait Implementations
impl RefUnwindSafe for VmaDeviceMemoryCallbacks
impl !Send for VmaDeviceMemoryCallbacks
impl !Sync for VmaDeviceMemoryCallbacks
impl Unpin for VmaDeviceMemoryCallbacks
impl UnwindSafe for VmaDeviceMemoryCallbacks
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