Enum wgpu_core::resource::BufferMapState
source · pub(crate) enum BufferMapState {
Init {
staging_buffer: StagingBuffer,
},
Waiting(BufferPendingMapping),
Active {
mapping: BufferMapping,
range: MemoryRange,
host: HostMap,
},
Idle,
}
Variants§
Init
Mapped at creation.
Fields
§
staging_buffer: StagingBuffer
Waiting(BufferPendingMapping)
Waiting for GPU to be done before mapping
Active
Mapped
Idle
Not mapped
Trait Implementations§
source§impl Debug for BufferMapState
impl Debug for BufferMapState
impl Send for BufferMapState
impl Sync for BufferMapState
Auto Trait Implementations§
impl Freeze for BufferMapState
impl !RefUnwindSafe for BufferMapState
impl Unpin for BufferMapState
impl !UnwindSafe for BufferMapState
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