Enum wgpu_core::resource::BufferMapState
source · pub(crate) enum BufferMapState<A: Api> {
Init {
ptr: NonNull<u8>,
stage_buffer: A::Buffer,
needs_flush: bool,
},
Waiting(BufferPendingMapping),
Active {
ptr: NonNull<u8>,
range: MemoryRange,
host: HostMap,
},
Idle,
}
Variants§
Init
Mapped at creation.
Waiting(BufferPendingMapping)
Waiting for GPU to be done before mapping
Active
Mapped
Idle
Not mapped
Trait Implementations§
impl<A: Api> Send for BufferMapState<A>
impl<A: Api> Sync for BufferMapState<A>
Auto Trait Implementations§
impl<A> !RefUnwindSafe for BufferMapState<A>
impl<A> Unpin for BufferMapState<A>where <A as Api>::Buffer: Unpin,
impl<A> !UnwindSafe for BufferMapState<A>
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