pub struct CapturedFrame {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
CPU-readable RGBA frame captured from the renderer output.
Fields§
§width: u32Width of the frame in device pixels.
height: u32Height of the frame in device pixels.
pixels: Vec<u8>The pixels as 8-bit RGBA, row by row from the top left, width * height * 4 bytes.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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