Struct ash::vk::AllocationCallbacks
source · #[repr(C)]pub struct AllocationCallbacks<'a> {
pub p_user_data: *mut c_void,
pub pfn_allocation: PFN_vkAllocationFunction,
pub pfn_reallocation: PFN_vkReallocationFunction,
pub pfn_free: PFN_vkFreeFunction,
pub pfn_internal_allocation: PFN_vkInternalAllocationNotification,
pub pfn_internal_free: PFN_vkInternalFreeNotification,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§p_user_data: *mut c_void
§pfn_allocation: PFN_vkAllocationFunction
§pfn_reallocation: PFN_vkReallocationFunction
§pfn_free: PFN_vkFreeFunction
§pfn_internal_allocation: PFN_vkInternalAllocationNotification
§pfn_internal_free: PFN_vkInternalFreeNotification
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> AllocationCallbacks<'a>
impl<'a> AllocationCallbacks<'a>
pub fn user_data(self, user_data: *mut c_void) -> Self
pub fn pfn_allocation(self, pfn_allocation: PFN_vkAllocationFunction) -> Self
pub fn pfn_reallocation( self, pfn_reallocation: PFN_vkReallocationFunction, ) -> Self
pub fn pfn_free(self, pfn_free: PFN_vkFreeFunction) -> Self
pub fn pfn_internal_allocation( self, pfn_internal_allocation: PFN_vkInternalAllocationNotification, ) -> Self
pub fn pfn_internal_free( self, pfn_internal_free: PFN_vkInternalFreeNotification, ) -> Self
Trait Implementations§
source§impl<'a> Clone for AllocationCallbacks<'a>
impl<'a> Clone for AllocationCallbacks<'a>
source§fn clone(&self) -> AllocationCallbacks<'a>
fn clone(&self) -> AllocationCallbacks<'a>
Returns a copy 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<'_>
impl<'a> Copy for AllocationCallbacks<'a>
impl Send for AllocationCallbacks<'_>
impl Sync for AllocationCallbacks<'_>
Auto Trait Implementations§
impl<'a> Freeze for AllocationCallbacks<'a>
impl<'a> RefUnwindSafe for AllocationCallbacks<'a>
impl<'a> Unpin for AllocationCallbacks<'a>
impl<'a> UnwindSafe for AllocationCallbacks<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)