pub struct CapturedFrame {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
pub stats: Option<RenderStatsSnapshot>,
}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.
stats: Option<RenderStatsSnapshot>The renderer’s account of the frame it drew for the capture, such as the placeholders it drew for pipelines that still compile.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Auto Trait Implementations§
impl Forget for CapturedFrame
impl Freeze for CapturedFrame
impl Move 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