pub struct FrameFeedback {
pub input: InputPacket,
pub render_stats: RenderStats,
pub replay: ReplayOutcome,
pub recycled: RenderSnapshot,
pub stop: bool,
}Expand description
One frame’s results crossing from the render half to the simulation.
Fields§
§input: InputPacketWindow input sampled right after the draw (whose event pump produced it), destined for the simulation’s input mailbox.
render_stats: RenderStatsThe drawn frame’s backend stats, for the profiler surfaces.
replay: ReplayOutcomeWhat the frame’s op replay produced (failures to roll back, memory pressure from an upload).
recycled: RenderSnapshotThe consumed snapshot, returned so its buffers keep their capacity.
stop: boolThe render half stopped (window closed, frame policy shutdown, device lost); the simulation must stop too.
Auto Trait Implementations§
impl !RefUnwindSafe for FrameFeedback
impl !Sync for FrameFeedback
impl !UnwindSafe for FrameFeedback
impl Freeze for FrameFeedback
impl Send for FrameFeedback
impl Unpin for FrameFeedback
impl UnsafeUnpin for FrameFeedback
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