pub struct OverlayCut<'a> {
pub overlay: &'a mut OverlaySurface,
pub range: Range<usize>,
pub overlay_id: u64,
}Expand description
One overlay of a segmented frame: the OverlaySurface that draws the
command range range of the frame’s scene, named by the differ’s
overlay_id (frust_shell_common’s ViewCommand::Overlay, whose
command_range is this range).
Handed to SurfaceRenderer::submit_segmented (or
SurfaceRenderer::submit_segmented_deferred) with the same ranges
SurfaceRenderer::encode_segmented was given as cuts, in the same
order.
Fields§
§overlay: &'a mut OverlaySurfaceThe overlay drawing this range.
range: Range<usize>The half-open command range of the frame’s scene it draws.
overlay_id: u64The differ’s id for the overlay, carried back in
OverlayCutOutcome::overlay_id and SegmentedPresents::overlays.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OverlayCut<'a>
impl<'a> !UnwindSafe for OverlayCut<'a>
impl<'a> Freeze for OverlayCut<'a>
impl<'a> Send for OverlayCut<'a>
impl<'a> Sync for OverlayCut<'a>
impl<'a> Unpin for OverlayCut<'a>
impl<'a> UnsafeUnpin for OverlayCut<'a>
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