[−][src]Struct rendy::frame::cirque::Cirque
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]
B: Backend,
C: Capability,
L: Level,
P: RenderPassRelation<L>,
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]
&'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>>,
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]
self,
dispose: impl FnMut(either::Either
) where
impl FnMut(either::Either
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]
&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,
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]
I: Debug,
P: Debug,
T: Debug,
Auto Trait Implementations
impl<T, I, P> Unpin for Cirque<T, I, P> where
P: Unpin,
T: Unpin,
P: Unpin,
T: Unpin,
impl<T, I, P> Sync for Cirque<T, I, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
impl<T, I, P> Send for Cirque<T, I, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, I, P> UnwindSafe for Cirque<T, I, P> where
P: UnwindSafe,
T: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
impl<T, I, P> RefUnwindSafe for Cirque<T, I, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Erased for T
[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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more