Struct screen_13::prelude::CommandChain
source · [−]pub struct CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind, { /* private fields */ }Implementations
sourceimpl<C, P> CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
impl<C, P> CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
pub fn new(cmd_buf: C) -> Self
pub fn push_execute(
self,
func: impl FnOnce(&Device<P>, &CommandBuffer<P>) + 'static
) -> Self
Pushes “something” into a pile that won’t be dropped until this command buffer submission actually finishes executing. Useful for keeping lifetimes in sync and handling undesired leases.
pub fn submit(self) -> Result<(), ExecutionError>
Trait Implementations
sourceimpl<C, P> Drop for CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
impl<C, P> Drop for CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
sourceimpl<C, P> From<C> for CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
impl<C, P> From<C> for CommandChain<C, P> where
C: AsRef<CommandBuffer<P>>,
P: SharedPointerKind,
Auto Trait Implementations
impl<C, P> !RefUnwindSafe for CommandChain<C, P>
impl<C, P> !Send for CommandChain<C, P>
impl<C, P> !Sync for CommandChain<C, P>
impl<C, P> Unpin for CommandChain<C, P> where
C: Unpin,
impl<C, P> !UnwindSafe for CommandChain<C, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more