#[repr(C)]pub struct AllocationCallbacks {
pub p_user_data: *mut c_void,
pub pfn_allocation: Option<unsafe extern "system" fn(*mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>,
pub pfn_reallocation: Option<unsafe extern "system" fn(*mut c_void, *mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>,
pub pfn_free: Option<unsafe extern "system" fn(*mut c_void, *mut c_void)>,
pub pfn_internal_allocation: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>,
pub pfn_internal_free: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>,
}Expand description
VkAllocationCallbacks
Provided by VK_BASE_VERSION_1_0.
Fields§
§p_user_data: *mut c_voidOptional, may be null.
pfn_allocation: Option<unsafe extern "system" fn(*mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>§pfn_reallocation: Option<unsafe extern "system" fn(*mut c_void, *mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void>§pfn_free: Option<unsafe extern "system" fn(*mut c_void, *mut c_void)>§pfn_internal_allocation: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>§pfn_internal_free: Option<unsafe extern "system" fn(*mut c_void, usize, InternalAllocationType, SystemAllocationScope)>Implementations§
Source§impl AllocationCallbacks
impl AllocationCallbacks
Sourcepub fn builder<'a>() -> AllocationCallbacksBuilder<'a>
pub fn builder<'a>() -> AllocationCallbacksBuilder<'a>
Start building this struct.
Trait Implementations§
Source§impl Clone for AllocationCallbacks
impl Clone for AllocationCallbacks
Source§fn clone(&self) -> AllocationCallbacks
fn clone(&self) -> AllocationCallbacks
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationCallbacks
impl Debug for AllocationCallbacks
Source§impl Default for AllocationCallbacks
impl Default for AllocationCallbacks
Source§fn default() -> AllocationCallbacks
fn default() -> AllocationCallbacks
Returns the “default value” for a type. Read more
impl Copy for AllocationCallbacks
Auto Trait Implementations§
impl Freeze for AllocationCallbacks
impl RefUnwindSafe for AllocationCallbacks
impl !Send for AllocationCallbacks
impl !Sync for AllocationCallbacks
impl Unpin for AllocationCallbacks
impl UnsafeUnpin for AllocationCallbacks
impl UnwindSafe for AllocationCallbacks
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