pub struct LinearBlock<B: Backend> { /* private fields */ }
Expand description
Memory block allocated from LinearAllocator
Trait Implementations§
Source§impl<B> Block<B> for LinearBlock<B>where
B: Backend,
impl<B> Block<B> for LinearBlock<B>where
B: Backend,
Source§fn properties(&self) -> Properties
fn properties(&self) -> Properties
Get memory properties of the block.
Source§fn map<'a>(
&'a mut self,
_device: &B::Device,
range: Range<u64>,
) -> Result<MappedRange<'a, B>, MapError>
fn map<'a>( &'a mut self, _device: &B::Device, range: Range<u64>, ) -> Result<MappedRange<'a, B>, MapError>
Get mapping for the buffer range.
Memory writes to the region performed by device become available for the host.
Source§impl<B> Debug for LinearBlock<B>where
B: Backend,
impl<B> Debug for LinearBlock<B>where
B: Backend,
impl<B> Send for LinearBlock<B>where
B: Backend,
impl<B> Sync for LinearBlock<B>where
B: Backend,
Auto Trait Implementations§
impl<B> Freeze for LinearBlock<B>
impl<B> RefUnwindSafe for LinearBlock<B>
impl<B> Unpin for LinearBlock<B>
impl<B> UnwindSafe for LinearBlock<B>
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