pub struct SequenceRenderer<D: Device> { /* private fields */ }Expand description
A bounded sequence pipeline for one engine/backend type.
Submissions preserve temporal history and do not wait for readback. poll
resolves only a completed oldest frame, preserving presentation order.
Implementations§
Source§impl<D: Device> SequenceRenderer<D>
impl<D: Device> SequenceRenderer<D>
Sourcepub fn submit(
&mut self,
engine: &mut Engine<D>,
scene: &Scene,
camera: &Camera,
timestamp: u64,
) -> Result<FrameTicket, RenderError>
pub fn submit( &mut self, engine: &mut Engine<D>, scene: &Scene, camera: &Camera, timestamp: u64, ) -> Result<FrameTicket, RenderError>
Submits one frame without waiting for GPU readback.
§Errors
Returns backpressure at the configured depth and rejects non-monotonic timestamps.
Sourcepub fn poll(
&mut self,
engine: &mut Engine<D>,
) -> Result<Option<SequenceFrame>, RenderError>
pub fn poll( &mut self, engine: &mut Engine<D>, ) -> Result<Option<SequenceFrame>, RenderError>
Resolves the oldest frame only when its tracked submission has completed.
§Errors
Returns device loss or image-layout failures.
Sourcepub fn finish(
self,
engine: &mut Engine<D>,
) -> Result<Vec<SequenceFrame>, RenderError>
pub fn finish( self, engine: &mut Engine<D>, ) -> Result<Vec<SequenceFrame>, RenderError>
Drains every outstanding frame in submission order.
§Errors
Returns the first device or image-layout failure.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for SequenceRenderer<D>
impl<D> RefUnwindSafe for SequenceRenderer<D>where
VecDeque<PendingSequence<D>>: RefUnwindSafe,
impl<D> Send for SequenceRenderer<D>
impl<D> Sync for SequenceRenderer<D>
impl<D> Unpin for SequenceRenderer<D>
impl<D> UnsafeUnpin for SequenceRenderer<D>where
VecDeque<PendingSequence<D>>: UnsafeUnpin,
impl<D> UnwindSafe for SequenceRenderer<D>where
VecDeque<PendingSequence<D>>: UnwindSafe,
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