pub struct OffscreenFrame {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
pub samples: u32,
}Expand description
A frame rendered offscreen: sRGB RGBA bytes, row by row.
Fields§
§width: u32The width of the frame, in pixels.
height: u32The height of the frame, in pixels.
rgba: Vec<u8>width * height * 4 bytes in RGBA order, origin at the top left.
samples: u32The MSAA sample count actually used; 1 means no smoothing, on a GPU without MSAA support. Informative, and useful to the anti-aliasing tests.
Auto Trait Implementations§
impl Freeze for OffscreenFrame
impl RefUnwindSafe for OffscreenFrame
impl Send for OffscreenFrame
impl Sync for OffscreenFrame
impl Unpin for OffscreenFrame
impl UnsafeUnpin for OffscreenFrame
impl UnwindSafe for OffscreenFrame
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