pub struct RenderedFrame {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
pub normalized_rect: Option<Rect>,
}Expand description
A frame that a backend rendered for a RenderFixture.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
pixels: Vec<u8>RGBA8 pixels, row by row, four bytes per pixel.
normalized_rect: Option<Rect>The fixture’s normalized_rect, carried over to the frame.
Trait Implementations§
Source§impl Clone for RenderedFrame
impl Clone for RenderedFrame
Auto Trait Implementations§
impl Freeze for RenderedFrame
impl RefUnwindSafe for RenderedFrame
impl Send for RenderedFrame
impl Sync for RenderedFrame
impl Unpin for RenderedFrame
impl UnsafeUnpin for RenderedFrame
impl UnwindSafe for RenderedFrame
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