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: u32§height: u32§pixels: Vec<u8>Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Source§fn clone(&self) -> CapturedFrame
fn clone(&self) -> CapturedFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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