pub struct MemoryBlock<B: Backend> { /* private fields */ }
Expand description
Memory block allocated from Heaps
.
Implementations§
Source§impl<B> MemoryBlock<B>where
B: Backend,
impl<B> MemoryBlock<B>where
B: Backend,
Sourcepub fn memory_type(&self) -> u32
pub fn memory_type(&self) -> u32
Get memory type id.
Trait Implementations§
Source§impl<B> Block<B> for MemoryBlock<B>where
B: Backend,
impl<B> Block<B> for MemoryBlock<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.
Auto Trait Implementations§
impl<B> Freeze for MemoryBlock<B>
impl<B> RefUnwindSafe for MemoryBlock<B>
impl<B> Send for MemoryBlock<B>
impl<B> Sync for MemoryBlock<B>
impl<B> Unpin for MemoryBlock<B>
impl<B> UnwindSafe for MemoryBlock<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