pub struct Frame {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
A rendered frame: straight (un-premultiplied) RGBA8, row-major, width × height.
The CPU lane composites into this; the GPU lane reads it back for a parity test.
Mirrors graphview’s Rendered so a skin can move over without a shape change.
Fields§
§width: u32§height: u32§rgba: Vec<u8>width * height * 4 bytes, [r, g, b, a] per pixel, not premultiplied.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
impl<T> Allocation for T
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