#[repr(C)]pub struct VkAllocationCallbacks {
pub pUserData: *mut c_void,
pub pfnAllocation: extern "system" fn(pUserData: *mut c_void, size: usize, alignment: usize, allocationScope: VkSystemAllocationScope) -> *mut c_void,
pub pfnReallocation: extern "system" fn(pUserData: *mut c_void, pOriginal: *mut c_void, size: usize, alignment: usize, allocationScope: VkSystemAllocationScope) -> *mut c_void,
pub pfnFree: extern "system" fn(pUserData: *mut c_void, pMemory: *mut c_void),
pub pfnInternalAllocation: extern "system" fn(pUserData: *mut c_void, size: usize, allocationType: VkInternalAllocationType, allocationScope: VkSystemAllocationScope),
pub pfnInternalFree: extern "system" fn(pUserData: *mut c_void, size: usize, allocationType: VkInternalAllocationType, allocationScope: VkSystemAllocationScope),
}Expand description
struct VkAllocationCallbacks from VK_VERSION_1_0
Fields§
§pUserData: *mut c_void§pfnAllocation: extern "system" fn(pUserData: *mut c_void, size: usize, alignment: usize, allocationScope: VkSystemAllocationScope) -> *mut c_void§pfnReallocation: extern "system" fn(pUserData: *mut c_void, pOriginal: *mut c_void, size: usize, alignment: usize, allocationScope: VkSystemAllocationScope) -> *mut c_void§pfnFree: extern "system" fn(pUserData: *mut c_void, pMemory: *mut c_void)§pfnInternalAllocation: extern "system" fn(pUserData: *mut c_void, size: usize, allocationType: VkInternalAllocationType, allocationScope: VkSystemAllocationScope)§pfnInternalFree: extern "system" fn(pUserData: *mut c_void, size: usize, allocationType: VkInternalAllocationType, allocationScope: VkSystemAllocationScope)Trait Implementations§
Source§impl Clone for VkAllocationCallbacks
impl Clone for VkAllocationCallbacks
Source§fn clone(&self) -> VkAllocationCallbacks
fn clone(&self) -> VkAllocationCallbacks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VkAllocationCallbacks
Auto Trait Implementations§
impl !Send for VkAllocationCallbacks
impl !Sync for VkAllocationCallbacks
impl Freeze for VkAllocationCallbacks
impl RefUnwindSafe for VkAllocationCallbacks
impl Unpin for VkAllocationCallbacks
impl UnsafeUnpin for VkAllocationCallbacks
impl UnwindSafe for VkAllocationCallbacks
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