Struct wgpu_core::device::alloc::MemoryAllocator [−][src]
pub struct MemoryAllocator<B: Backend>(_);
Implementations
impl<B: Backend> MemoryAllocator<B>[src]
impl<B: Backend> MemoryAllocator<B>[src]pub fn new(mem_props: MemoryProperties, limits: Limits) -> Self[src]
pub fn allocate(
&mut self,
device: &B::Device,
requirements: Requirements,
usage: UsageFlags
) -> Result<MemoryBlock<B>, DeviceError>[src]
&mut self,
device: &B::Device,
requirements: Requirements,
usage: UsageFlags
) -> Result<MemoryBlock<B>, DeviceError>
pub fn free(&mut self, device: &B::Device, block: MemoryBlock<B>)[src]
pub fn clear(&mut self, device: &B::Device)[src]
Trait Implementations
Auto Trait Implementations
impl<B> RefUnwindSafe for MemoryAllocator<B> where
<B as Backend>::Memory: RefUnwindSafe,
<B as Backend>::Memory: RefUnwindSafe,
impl<B> Send for MemoryAllocator<B>
impl<B> Sync for MemoryAllocator<B>
impl<B> Unpin for MemoryAllocator<B>
impl<B> UnwindSafe for MemoryAllocator<B> where
<B as Backend>::Memory: RefUnwindSafe,
<B as Backend>::Memory: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more