Struct wgpu_core::device::queue::EncoderInFlight
source · pub(crate) struct EncoderInFlight {
raw: Box<dyn DynCommandEncoder>,
cmd_buffers: Vec<Box<dyn DynCommandBuffer>>,
pub(crate) trackers: Tracker,
pub(crate) pending_buffers: HashMap<TrackerIndex, Arc<Buffer>, BuildHasherDefault<FxHasher>>,
pub(crate) pending_textures: HashMap<TrackerIndex, Arc<Texture>, BuildHasherDefault<FxHasher>>,
}
Expand description
A series of raw CommandBuffer
s that have been submitted to a
queue, and the wgpu_hal::CommandEncoder
that built them.
Fields§
§raw: Box<dyn DynCommandEncoder>
§cmd_buffers: Vec<Box<dyn DynCommandBuffer>>
§trackers: Tracker
§pending_buffers: HashMap<TrackerIndex, Arc<Buffer>, BuildHasherDefault<FxHasher>>
These are the buffers that have been tracked by PendingWrites
.
pending_textures: HashMap<TrackerIndex, Arc<Texture>, BuildHasherDefault<FxHasher>>
These are the textures that have been tracked by PendingWrites
.
Implementations§
source§impl EncoderInFlight
impl EncoderInFlight
sourcepub(crate) unsafe fn land(self) -> Box<dyn DynCommandEncoder>
pub(crate) unsafe fn land(self) -> Box<dyn DynCommandEncoder>
Free all of our command buffers.
Return the command encoder, fully reset and ready to be reused.
Auto Trait Implementations§
impl Freeze for EncoderInFlight
impl !RefUnwindSafe for EncoderInFlight
impl Send for EncoderInFlight
impl Sync for EncoderInFlight
impl Unpin for EncoderInFlight
impl !UnwindSafe for EncoderInFlight
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