pub struct SegmentedPresents {
pub main: Option<DeferredPresent>,
pub overlays: Vec<(u64, DeferredPresent)>,
}Expand description
The un-presented frames of one segmented frame —
SurfaceRenderer::submit_segmented_deferred’s answer for a host that
pairs the presents itself (iOS/macOS inside one CATransaction).
Dropping it presents nothing: every frame returns to its swapchain
un-presented, the same skip a dropped DeferredPresent is.
Fields§
§main: Option<DeferredPresent>The main surface’s frame, None when the main frame did not render.
overlays: Vec<(u64, DeferredPresent)>Each overlay that rendered, with its OverlayCut::overlay_id, in cut
order.
Implementations§
Source§impl SegmentedPresents
impl SegmentedPresents
Sourcepub fn present_all(self)
pub fn present_all(self)
Presents every frame on the calling thread: the main surface first, then each overlay in cut order (bottom to top).
Sourcepub fn into_vec(self) -> Vec<DeferredPresent>
pub fn into_vec(self) -> Vec<DeferredPresent>
The frames as one list — the main surface’s first, then each overlay in cut order — for a host that presents them through a list of its own.
Trait Implementations§
Source§impl Debug for SegmentedPresents
impl Debug for SegmentedPresents
Auto Trait Implementations§
impl !RefUnwindSafe for SegmentedPresents
impl !UnwindSafe for SegmentedPresents
impl Freeze for SegmentedPresents
impl Send for SegmentedPresents
impl Sync for SegmentedPresents
impl Unpin for SegmentedPresents
impl UnsafeUnpin for SegmentedPresents
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