pub(crate) struct EncoderInFlight {
inner: InnerCommandEncoder,
pub(crate) trackers: Tracker,
pub(crate) temp_resources: Vec<TempResource>,
_indirect_draw_validation_resources: DrawResources,
pub(crate) pending_buffers: HashMap<TrackerIndex, Arc<Buffer>, BuildHasherDefault<FxHasher>>,
pub(crate) pending_textures: HashMap<TrackerIndex, Arc<Texture>, BuildHasherDefault<FxHasher>>,
pub(crate) pending_blas_s: HashMap<TrackerIndex, Arc<Blas>, BuildHasherDefault<FxHasher>>,
}Expand description
A series of raw CommandBuffers that have been submitted to a
queue, and the wgpu_hal::CommandEncoder that built them.
Fields§
§inner: InnerCommandEncoder§trackers: Tracker§temp_resources: Vec<TempResource>§_indirect_draw_validation_resources: DrawResourcesWe only need to keep these resources alive.
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.
pending_blas_s: HashMap<TrackerIndex, Arc<Blas>, BuildHasherDefault<FxHasher>>These are the BLASes that have been tracked by PendingWrites.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more