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: StagingBufferWaiting(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
Available on
send_sync only.impl Sync for BufferMapState
Available on
send_sync only.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