pub struct ImageData {
pub width: u32,
pub height: u32,
pub rgba: Arc<[u8]>,
pub blob: Blob<u8>,
}Expand description
Decoded image payload in RGBA8 with top-left origin.
- Shared via
Handle<ImageData>; never deep-copied. blobis a pre-builtpeniko::Blobwhose stable identity keys a renderer’s image upload cache across frames.Blobcloning isArc-cheap.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Arc<[u8]>RGBA8 pixel buffer in row-major order (width * height * 4 bytes), accessible to consumers other than the renderer, such as the MCP inspector.
blob: Blob<u8>Pre-built peniko::Blob whose identity is the renderer’s upload cache key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageData
impl !RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl !UnwindSafe for ImageData
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.