pub struct FrameInput<'a> {
pub target: &'a TextureView,
pub paint_jobs: &'a [ClippedPrimitive],
pub textures_delta: &'a TexturesDelta,
pub screen: ScreenDescriptor,
}Expand description
One frame’s egui output plus where to draw it.
Fields§
§target: &'a TextureViewThe display target (swapchain view); must have the adapter’s target_format.
paint_jobs: &'a [ClippedPrimitive]The tessellated egui primitives for this frame.
Backdrop-Root rule (host obligation): v1 renders this same frame into both the blur source and the display, and the blur samples the surface’s own screen area. So the host must not paint a frosted surface’s own background/fill into these jobs — otherwise the blur samples the panel’s fill instead of the content behind it. The crate owns only the background; the surface’s foreground is the host’s, painted in its own later pass.
textures_delta: &'a TexturesDeltaThe textures egui created/freed this frame.
screen: ScreenDescriptorScreen size (physical px) + pixels-per-point.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FrameInput<'a>
impl<'a> !UnwindSafe for FrameInput<'a>
impl<'a> Freeze for FrameInput<'a>
impl<'a> Send for FrameInput<'a>
impl<'a> Sync for FrameInput<'a>
impl<'a> Unpin for FrameInput<'a>
impl<'a> UnsafeUnpin for FrameInput<'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