pub struct OverlayImage<'a> {
pub rgba: &'a [u8],
pub width: u32,
pub height: u32,
}Expand description
An image the shell hands the renderer: width * height pixels of RGBA8,
rows top first, no row padding — a
CaptureImage’s own layout. The bytes are copied into
a texture; the borrow ends with the call.
Fields§
§rgba: &'a [u8]width * height * 4 bytes.
width: u32Width in pixels.
height: u32Height in pixels.
Auto Trait Implementations§
impl<'a> Freeze for OverlayImage<'a>
impl<'a> RefUnwindSafe for OverlayImage<'a>
impl<'a> Send for OverlayImage<'a>
impl<'a> Sync for OverlayImage<'a>
impl<'a> Unpin for OverlayImage<'a>
impl<'a> UnsafeUnpin for OverlayImage<'a>
impl<'a> UnwindSafe for OverlayImage<'a>
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