pub struct SurfaceFrame {
pub width: u32,
pub height: u32,
pub rgba8: Vec<u8>,
}Expand description
One CPU-side snapshot of the on-screen window surface produced by a GPU->CPU readback.
Fields§
§width: u32Pixel width.
height: u32Pixel height.
rgba8: Vec<u8>Tightly-packed RGBA8 pixels, top-to-bottom, sRGB-encoded (no pre-multiplied alpha).
Trait Implementations§
Source§impl Clone for SurfaceFrame
impl Clone for SurfaceFrame
Source§fn clone(&self) -> SurfaceFrame
fn clone(&self) -> SurfaceFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SurfaceFrame
impl RefUnwindSafe for SurfaceFrame
impl Send for SurfaceFrame
impl Sync for SurfaceFrame
impl Unpin for SurfaceFrame
impl UnsafeUnpin for SurfaceFrame
impl UnwindSafe for SurfaceFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.