[−][src]Struct rendy_frame::cirque::Cirque
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]
B: Backend,
L: Level,
C: Capability,
P: RenderPassRelation<L>,
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]
&'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>
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]
&mut self,
frames: &Frames<B>,
alloc: impl FnOnce() -> I,
complete: impl Fn(P) -> T
) -> CirqueRef<'_, T, I, P>
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,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I, P> Send for Cirque<T, I, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, I, P> Sync for Cirque<T, I, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
impl<T, I, P> Unpin for Cirque<T, I, P> where
P: Unpin,
T: Unpin,
P: Unpin,
T: Unpin,
impl<T, I, P> UnwindSafe for Cirque<T, I, P> where
P: UnwindSafe,
T: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,