[][src]Enum wgpu_core::resource::BufferMapState

pub enum BufferMapState<B: Backend> {
    Init {
        ptr: NonNull<u8>,
        stage_buffer: B::Buffer,
        stage_memory: MemoryBlock<B>,
    },
    Waiting(BufferPendingMapping),
    Active {
        ptr: NonNull<u8>,
        sub_range: SubRange,
        host: HostMap,
    },
    Idle,
}

Variants

Init

Mapped at creation.

Fields of Init

ptr: NonNull<u8>stage_buffer: B::Bufferstage_memory: MemoryBlock<B>
Waiting(BufferPendingMapping)

Waiting for GPU to be done before mapping

Active

Mapped

Fields of Active

ptr: NonNull<u8>sub_range: SubRangehost: HostMap
Idle

Not mapped

Trait Implementations

impl<B: Debug + Backend> Debug for BufferMapState<B> where
    B::Buffer: Debug
[src]

impl<B: Backend> Send for BufferMapState<B>[src]

impl<B: Backend> Sync for BufferMapState<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for BufferMapState<B> where
    <B as Backend>::Buffer: RefUnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe

impl<B> Unpin for BufferMapState<B> where
    <B as Backend>::Buffer: Unpin,
    <B as Backend>::Memory: Unpin

impl<B> UnwindSafe for BufferMapState<B> where
    <B as Backend>::Buffer: UnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe + UnwindSafe

Blanket Implementations

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

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

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

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

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

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.