pub struct FallbackAllocator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for FallbackAllocator
impl Debug for FallbackAllocator
Source§impl GpuAllocator for FallbackAllocator
impl GpuAllocator for FallbackAllocator
fn allocate( &mut self, size: u64, region: MemoryRegion, mem_type: MemType, access: MemAccess, ) -> TptrResult<MemoryAllocation>
fn free(&mut self, allocation: &MemoryAllocation) -> TptrResult<()>
Source§fn free_handle(&mut self, _handle: u64) -> TptrResult<()>
fn free_handle(&mut self, _handle: u64) -> TptrResult<()>
Release the bookkeeping for an allocation by its handle alone, without
re-matching the device pointer (used when the real device pointer has
been substituted for the allocator’s fake address).
fn stats(&self) -> AllocatorStats
fn reset(&mut self) -> TptrResult<()>
Auto Trait Implementations§
impl !Freeze for FallbackAllocator
impl RefUnwindSafe for FallbackAllocator
impl Send for FallbackAllocator
impl Sync for FallbackAllocator
impl Unpin for FallbackAllocator
impl UnsafeUnpin for FallbackAllocator
impl UnwindSafe for FallbackAllocator
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