pub struct PresentedFrame {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
pub opaque_blank: bool,
pub native: Option<Arc<NativePresentation>>,
}Expand description
A published canvas buffer: completed CPU pixels or an ordered native frame.
Fields§
§width: u32Bitmap dimensions, zero for a constant-black marker.
height: u32§rgba: Vec<u8>Tightly packed premultiplied RGBA8; empty for a constant-black marker.
opaque_blank: boolPaint black at present_size(key) without allocating a bitmap.
native: Option<Arc<NativePresentation>>Optional host-owned GPU frame. rgba is empty until an explicit snapshot.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PresentedFrame
impl !UnwindSafe for PresentedFrame
impl Forget for PresentedFrame
impl Freeze for PresentedFrame
impl Move for PresentedFrame
impl Send for PresentedFrame
impl Sync for PresentedFrame
impl Unpin for PresentedFrame
impl UnsafeUnpin for PresentedFrame
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