pub struct DedicatedBlock<B: Backend> { /* private fields */ }
Expand description
Memory block allocated from DedicatedAllocator
Implementations§
Source§impl<B> DedicatedBlock<B>where
B: Backend,
impl<B> DedicatedBlock<B>where
B: Backend,
Sourcepub fn unwrap_memory(self) -> Memory<B>
pub fn unwrap_memory(self) -> Memory<B>
Get inner memory. Panics if mapped.
Sourcepub fn from_memory(memory: Memory<B>) -> Self
pub fn from_memory(memory: Memory<B>) -> Self
Make unmapped block.
Trait Implementations§
Source§impl<B> Block<B> for DedicatedBlock<B>where
B: Backend,
impl<B> Block<B> for DedicatedBlock<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.
impl<B> Send for DedicatedBlock<B>where
B: Backend,
impl<B> Sync for DedicatedBlock<B>where
B: Backend,
Auto Trait Implementations§
impl<B> Freeze for DedicatedBlock<B>
impl<B> RefUnwindSafe for DedicatedBlock<B>
impl<B> Unpin for DedicatedBlock<B>
impl<B> UnwindSafe for DedicatedBlock<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