pub struct Frames<B: Backend> { /* private fields */ }
Expand description
Timeline of frames, complete, pending and next.
Implementations§
Source§impl<B> Frames<B>where
B: Backend,
impl<B> Frames<B>where
B: Backend,
Sourcepub fn advance(&mut self, fences: Fences<B>)
pub fn advance(&mut self, fences: Fences<B>)
Advance to the next frame. All fences of the next frame must be queued.
Sourcepub fn complete_upper_bound(&self) -> u64
pub fn complete_upper_bound(&self) -> u64
Get upper bound of complete frames. All frames with index less than result of this function are complete.
Sourcepub fn is_complete(&self, frame: Frame) -> bool
pub fn is_complete(&self, frame: Frame) -> bool
Check if given frame is.
Sourcepub fn complete(&self, frame: Frame) -> Option<CompleteFrame>
pub fn complete(&self, frame: Frame) -> Option<CompleteFrame>
Check if frame with specified index is complete.
Sourcepub fn wait_complete(
&mut self,
target: Frame,
factory: &Factory<B>,
free: impl FnMut(Fences<B>),
) -> CompleteFrame
pub fn wait_complete( &mut self, target: Frame, factory: &Factory<B>, free: impl FnMut(Fences<B>), ) -> CompleteFrame
Sourcepub fn range(&self) -> FramesRange
pub fn range(&self) -> FramesRange
Get range of frame indices in this form:
upper bound of finished frames .. next frame
.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Frames<B>
impl<B> RefUnwindSafe for Frames<B>
impl<B> Send for Frames<B>
impl<B> Sync for Frames<B>
impl<B> Unpin for Frames<B>
impl<B> UnwindSafe for Frames<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more