pub struct PendingState<N = ExecutableState>(pub N);
Expand description
Command buffer in pending state are submitted to the device.
Command buffer in pending state must never be invalidated or reset because device may read it at the moment.
Proving device is done with buffer requires nontrivial strategies.
Therefore moving buffer from pending state requires unsafe
method.
Tuple Fields§
§0: N
Trait Implementations§
Source§impl<N: Clone> Clone for PendingState<N>
impl<N: Clone> Clone for PendingState<N>
Source§fn clone(&self) -> PendingState<N>
fn clone(&self) -> PendingState<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<N: Debug> Debug for PendingState<N>
impl<N: Debug> Debug for PendingState<N>
Source§impl<N: Default> Default for PendingState<N>
impl<N: Default> Default for PendingState<N>
Source§fn default() -> PendingState<N>
fn default() -> PendingState<N>
Returns the “default value” for a type. Read more
impl<N: Copy> Copy for PendingState<N>
Auto Trait Implementations§
impl<N> Freeze for PendingState<N>where
N: Freeze,
impl<N> RefUnwindSafe for PendingState<N>where
N: RefUnwindSafe,
impl<N> Send for PendingState<N>where
N: Send,
impl<N> Sync for PendingState<N>where
N: Sync,
impl<N> Unpin for PendingState<N>where
N: Unpin,
impl<N> UnwindSafe for PendingState<N>where
N: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)