[]Struct amethyst_rendy::rendy::memory::Memory

pub struct Memory<B> where
    B: Backend
{ /* fields omitted */ }

Memory object wrapper. Contains size and properties of the memory.

Implementations

impl<B> Memory<B> where
    B: Backend

pub fn properties(&self) -> Properties

Get memory properties.

pub fn size(&self) -> u64

Get memory size.

pub fn raw(&self) -> &<B as Backend>::Memory

Get raw memory.

pub fn into_raw(self) -> <B as Backend>::Memory

Unwrap raw memory.

pub unsafe fn from_raw(
    raw: <B as Backend>::Memory,
    size: u64,
    properties: Properties
) -> Memory<B>

Create memory from raw object.

Safety

TODO:

pub fn host_visible(&self) -> bool

Check if this memory is host-visible and can be mapped. memory.host_visible() is equivalent to memory.properties().contains(Properties::CPU_VISIBLE)

pub fn host_coherent(&self) -> bool

Check if this memory is host-coherent and doesn't require invalidating or flushing. memory.host_coherent() is equivalent to memory.properties().contains(Properties::COHERENT)

Trait Implementations

impl<B> Debug for Memory<B> where
    B: Debug + Backend,
    <B as Backend>::Memory: Debug

Auto Trait Implementations

impl<B> RefUnwindSafe for Memory<B> where
    <B as Backend>::Memory: RefUnwindSafe

impl<B> Send for Memory<B> where
    <B as Backend>::Memory: Send

impl<B> Sync for Memory<B> where
    <B as Backend>::Memory: Sync

impl<B> Unpin for Memory<B> where
    <B as Backend>::Memory: Unpin

impl<B> UnwindSafe for Memory<B> where
    <B as Backend>::Memory: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,