pub struct FrameMeta {
pub frame_time: FrameTime,
pub size: SurfaceSize,
pub frame_id: u64,
}Expand description
Per-frame metadata riding the scene-handoff channel alongside the scene itself.
Fields§
§frame_time: FrameTimeThe shell’s frame clock for this frame (Choreographer/CADisplayLink/
desktop epoch), threaded through to PaintCtx::frame_time so the render
thread advances animations against the same clock the UI thread painted
with. Only differences of two FrameTimes carry meaning (see its
docs).
size: SurfaceSizeThe surface size this scene was laid out for — the render thread checks it against the live swapchain configuration before encoding.
frame_id: u64Monotonically increasing per-frame id the UI thread stamps, so a dropped (latest-wins-replaced) frame is observable in diagnostics and so a render-side report can be paired back to the frame that produced it.
Trait Implementations§
impl Copy for FrameMeta
impl StructuralPartialEq for FrameMeta
Auto Trait Implementations§
impl Freeze for FrameMeta
impl RefUnwindSafe for FrameMeta
impl Send for FrameMeta
impl Sync for FrameMeta
impl Unpin for FrameMeta
impl UnsafeUnpin for FrameMeta
impl UnwindSafe for FrameMeta
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.