pub struct Memory<B: Backend> { /* private fields */ }
Expand description
Memory object wrapper. Contains size and properties of the memory.
Implementations§
Source§impl<B: Backend> Memory<B>
impl<B: Backend> Memory<B>
Sourcepub fn properties(&self) -> Properties
pub fn properties(&self) -> Properties
Get memory properties.
Sourcepub unsafe fn from_raw(
raw: B::Memory,
size: Size,
properties: Properties,
non_coherent_atom_size: Option<AtomSize>,
) -> Self
pub unsafe fn from_raw( raw: B::Memory, size: Size, properties: Properties, non_coherent_atom_size: Option<AtomSize>, ) -> Self
Sourcepub fn is_mappable(&self) -> bool
pub fn is_mappable(&self) -> bool
Check if this memory is host-visible and can be mapped.
Equivalent to
memory.properties().contains(Properties::CPU_VISIBLE)`.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Memory<B>
impl<B> RefUnwindSafe for Memory<B>
impl<B> Send for Memory<B>
impl<B> Sync for Memory<B>
impl<B> Unpin for Memory<B>
impl<B> UnwindSafe for Memory<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