pub struct DefaultAllocator;Expand description
The default vulkan allocator, Using this allocator will let Vulkan use the default allocator It is the same as specifying NULL (on C) or None (on Ash) every time the parameter pAllocator is required
Trait Implementations§
Source§impl Allocator for DefaultAllocator
impl Allocator for DefaultAllocator
Source§fn get_allocation_callbacks(&self) -> Option<AllocationCallbacks>
fn get_allocation_callbacks(&self) -> Option<AllocationCallbacks>
By returning None, we ask Vulkan to use its default allocator
Source§fn on_internal_alloc(
&self,
_: usize,
_: InternalAllocationType,
_: SystemAllocationScope,
)
fn on_internal_alloc( &self, _: usize, _: InternalAllocationType, _: SystemAllocationScope, )
Source§fn on_internal_free(
&self,
_: usize,
_: InternalAllocationType,
_: SystemAllocationScope,
)
fn on_internal_free( &self, _: usize, _: InternalAllocationType, _: SystemAllocationScope, )
extern "system" fn pfn_allocation( user_data: *mut (), size: usize, alignment: usize, allocation_scope: SystemAllocationScope, ) -> *mut ()
extern "system" fn pfn_reallocation( user_data: *mut (), original: *mut (), size: usize, alignment: usize, allocation_scope: SystemAllocationScope, ) -> *mut ()
extern "system" fn pfn_free(user_data: *mut (), memory: *mut ())
extern "system" fn pfn_internal_allocation( user_data: *mut (), size: usize, allocation_type: InternalAllocationType, allocation_scope: SystemAllocationScope, )
extern "system" fn pfn_internal_free( user_data: *mut (), size: usize, allocation_type: InternalAllocationType, allocation_scope: SystemAllocationScope, )
Source§impl Clone for DefaultAllocator
impl Clone for DefaultAllocator
Source§fn clone(&self) -> DefaultAllocator
fn clone(&self) -> DefaultAllocator
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 moreimpl Copy for DefaultAllocator
Auto Trait Implementations§
impl Freeze for DefaultAllocator
impl RefUnwindSafe for DefaultAllocator
impl Send for DefaultAllocator
impl Sync for DefaultAllocator
impl Unpin for DefaultAllocator
impl UnwindSafe for DefaultAllocator
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