[][src]Struct amethyst_rendy::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.

Methods

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,
    C: Capability,
    L: Level,
    P: RenderPassRelation<L>, 
[src]

pub fn encode<'a, impl FnOnce(CommandCirqueRef<'a, B, C, P, L>) -> CommandReadyRef<'a, B, C, P, L>>(
    &'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> where
    impl FnOnce(CommandCirqueRef<'a, B, C, P, L>) -> CommandReadyRef<'a, B, C, P, L>: FnOnce(CirqueRef<'a, 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>>) -> ReadyRef<'a, 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>>, 
[src]

Encode and submit.

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

pub fn new() -> Cirque<T, I, P>[src]

Create new empty Cirque

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

Dispose of the Cirque.

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

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

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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.

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

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

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

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

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

impl<T> Erased for T[src]

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> TryDefault for T where
    T: Default
[src]

fn unwrap_default() -> Self[src]

Calls try_default and panics on an error case.

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]