pub struct HeadlessImage {
pub width: u32,
pub height: u32,
pub rgba8: Vec<u8>,
pub meta: HeadlessMeta,
}Expand description
The pixels of one headless render, plus the provenance of the GPU that produced them.
Fields§
§width: u32Width in pixels, matching the HeadlessSpec that produced it.
height: u32Height in pixels.
rgba8: Vec<u8>Tightly packed RGBA8 rows — width * height * 4 bytes, no row
padding, in the engine’s PREMULTIPLIED alpha convention (an erased
pixel reads [0, 0, 0, 0]).
meta: HeadlessMetaThe GPU this image came from.
Implementations§
Trait Implementations§
Source§impl Clone for HeadlessImage
impl Clone for HeadlessImage
Source§impl Debug for HeadlessImage
impl Debug for HeadlessImage
impl Eq for HeadlessImage
Source§impl PartialEq for HeadlessImage
impl PartialEq for HeadlessImage
impl StructuralPartialEq for HeadlessImage
Auto Trait Implementations§
impl Freeze for HeadlessImage
impl RefUnwindSafe for HeadlessImage
impl Send for HeadlessImage
impl Sync for HeadlessImage
impl Unpin for HeadlessImage
impl UnsafeUnpin for HeadlessImage
impl UnwindSafe for HeadlessImage
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.