Skip to main content

VkAllocationCallbacks

Type Alias VkAllocationCallbacks 

Source
pub type VkAllocationCallbacks = AllocationCallbacks<'static>;
Expand description

(sdl3-sys) Enable a use-ash-* feature to alias this to vk::AllocationCallbacks::<'static> from the ash crate. Otherwise it’s an opaque type.

The 'static lifetime is too long. ash requires a lifetime for this, but as it’s a C ffi type there’s no way for sdl3-sys to set the correct lifetime.

Aliased Type§

#[repr(C)]
pub struct VkAllocationCallbacks { 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)>, pub _marker: PhantomData<&'static ()>, }

Fields§

§p_user_data: *mut c_void§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)>§_marker: PhantomData<&'static ()>