[][src]Struct rendy_frame::cirque::Cirque

pub struct Cirque<T, I = T, P = T> { /* fields omitted */ }

Resource cirque. It simplifies using multiple resources when same resource cannot be used simulteneously.

Implementations

impl<B, C, P, L> Cirque<CommandBuffer<B, C, ExecutableState<MultiShot<NoSimultaneousUse>, P>, L, IndividualReset>, CommandBuffer<B, C, InitialState, L, IndividualReset>, CommandBuffer<B, C, PendingState<ExecutableState<MultiShot<NoSimultaneousUse>, P>>, L, IndividualReset>> where
    B: Backend,
    L: Level,
    C: Capability,
    P: RenderPassRelation<L>, 
[src]

pub fn encode<'a>(
    &'a mut self,
    frames: &Frames<B>,
    pool: &mut CommandPool<B, C, IndividualReset>,
    encode: impl FnOnce(CommandCirqueRef<'a, B, C, P, L>) -> CommandReadyRef<'a, B, C, P, L>
) -> Submit<B, NoSimultaneousUse, L, P>
[src]

Encode and submit.

impl<T, I, P> Cirque<T, I, P>[src]

pub fn new() -> Self[src]

Create new empty Cirque

pub fn dispose(self, dispose: impl FnMut(Either<T, P>))[src]

Dispose of the Cirque.

pub fn get<B: Backend>(
    &mut self,
    frames: &Frames<B>,
    alloc: impl FnOnce() -> I,
    complete: impl Fn(P) -> T
) -> CirqueRef<'_, T, I, P>
[src]

Get CirqueRef for specified frames range. Allocate new instance in initial state if no ready values exist.

Trait Implementations

impl<T: Debug, I: Debug, P: Debug> Debug for Cirque<T, I, P>[src]

impl<T, I, P> Default for Cirque<T, I, P>[src]

Auto Trait Implementations

impl<T, I, P> RefUnwindSafe for Cirque<T, I, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I, P> Send for Cirque<T, I, P> where
    P: Send,
    T: Send

impl<T, I, P> Sync for Cirque<T, I, P> where
    P: Sync,
    T: Sync

impl<T, I, P> Unpin for Cirque<T, I, P> where
    P: Unpin,
    T: Unpin

impl<T, I, P> UnwindSafe for Cirque<T, I, P> where
    P: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.