pub struct OffscreenFrame<'a> {
pub primitives: &'a [ClippedPrimitive],
pub textures: &'a TexturesDelta,
pub size_in_pixels: [u32; 2],
pub pixels_per_point: f32,
pub clear: Color32,
}Expand description
One frame for an Offscreen renderer: what the backend would paint, already tessellated.
Fields§
§primitives: &'a [ClippedPrimitive]§textures: &'a TexturesDeltaThis frame’s texture changes (apply set; the backend applies them again, and frees).
size_in_pixels: [u32; 2]§pixels_per_point: f32§clear: Color32What to clear to (the window background).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OffscreenFrame<'a>
impl<'a> !UnwindSafe for OffscreenFrame<'a>
impl<'a> Freeze for OffscreenFrame<'a>
impl<'a> Send for OffscreenFrame<'a>
impl<'a> Sync for OffscreenFrame<'a>
impl<'a> Unpin for OffscreenFrame<'a>
impl<'a> UnsafeUnpin for OffscreenFrame<'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
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