pub(crate) struct PendingSubmission<'a> {
queue: &'a Queue,
snatch_guard: SnatchGuard<'a>,
fence: RwLockWriteGuard<'a, ManuallyDrop<Box<dyn DynFence>>>,
command_index_guard: RwLockWriteGuard<'a, CommandIndices>,
pub executions: Vec<EncoderInFlight>,
pub surface_textures: HashMap<*const Texture, Arc<Texture>, BuildHasherDefault<FxHasher>>,
pub index: SubmissionIndex,
}Expand description
A partially-assembled submission.
Returned from Queue::allocate_submission and consumed by submit.
These are internal APIs used in Queue::submit and other places within
wgpu-core that need to submit work.
Fields§
§queue: &'a Queue§snatch_guard: SnatchGuard<'a>§fence: RwLockWriteGuard<'a, ManuallyDrop<Box<dyn DynFence>>>§command_index_guard: RwLockWriteGuard<'a, CommandIndices>§executions: Vec<EncoderInFlight>§surface_textures: HashMap<*const Texture, Arc<Texture>, BuildHasherDefault<FxHasher>>§index: SubmissionIndexImplementations§
Source§impl<'a> PendingSubmission<'a>
impl<'a> PendingSubmission<'a>
fn submit( self, pending_writes: MutexGuard<'a, PendingWrites>, ) -> Result<SubmissionResult<'a>, DeviceError>
Auto Trait Implementations§
impl<'a> Freeze for PendingSubmission<'a>
impl<'a> !RefUnwindSafe for PendingSubmission<'a>
impl<'a> !Send for PendingSubmission<'a>
impl<'a> !Sync for PendingSubmission<'a>
impl<'a> Unpin for PendingSubmission<'a>
impl<'a> !UnwindSafe for PendingSubmission<'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
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