pub struct UiFrame<'a> {
pub source: Source,
pub textures: TexturesDelta,
pub primitives: &'a [ClippedPrimitive],
}Available on crate feature
egui only.Expand description
One source’s contribution to a frame: what to upload and what it owns.
The textures are consumed — a delta is applied once, and egui panics when one is dropped unapplied — while the primitives are borrowed: a frame laid out in another world is drawn again on every drawn frame until that world publishes a newer one, so its tessellation has to outlive the upload.
Fields§
§source: SourceWhich context this contribution came from.
textures: TexturesDeltaThe context’s texture updates for this frame.
primitives: &'a [ClippedPrimitive]The context’s tessellated geometry.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UiFrame<'a>
impl<'a> !UnwindSafe for UiFrame<'a>
impl<'a> Forget for UiFrame<'a>
impl<'a> Freeze for UiFrame<'a>
impl<'a> Send for UiFrame<'a>
impl<'a> Sync for UiFrame<'a>
impl<'a> Unpin for UiFrame<'a>
impl<'a> UnsafeUnpin for UiFrame<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more