pub struct SceneFrame<S> {
pub scene: S,
pub meta: FrameMeta,
pub ui_spans: UiSpans,
}Expand description
One frame handed from the UI thread to the render thread across
render_channel: the finished scene, its
FrameMeta, and the UI thread’s UiSpans half of the frame timing
(the render thread is the single perf emitter).
Generic over the scene type S so this crate stays render-free: a shell
instantiates SceneFrame<frust_scene::Scene>, host tests use a cheap
stand-in.
Fields§
§scene: SThe finished scene the render thread encodes (frust_scene::Scene in a
real shell — Scene is Send, verified by its compile-time tripwire).
meta: FrameMetaThis frame’s metadata (clock, surface size, id).
ui_spans: UiSpansThe UI thread’s rebuild/layout/paint timing, folded with the
render thread’s RenderSpans via
FramePasses::from_split into
the one recorded frame.
Trait Implementations§
Source§impl<S: Clone> Clone for SceneFrame<S>
impl<S: Clone> Clone for SceneFrame<S>
Auto Trait Implementations§
impl<S> Freeze for SceneFrame<S>where
S: Freeze,
impl<S> RefUnwindSafe for SceneFrame<S>where
S: RefUnwindSafe,
impl<S> Send for SceneFrame<S>where
S: Send,
impl<S> Sync for SceneFrame<S>where
S: Sync,
impl<S> Unpin for SceneFrame<S>where
S: Unpin,
impl<S> UnsafeUnpin for SceneFrame<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SceneFrame<S>where
S: 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> 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.