pub struct ReadbackImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
pub transfers: TransferReceipt,
}Expand description
Caller-requested tightly packed RGBA8 readback.
Fields§
§width: u32Image width.
height: u32Image height.
rgba: Vec<u8>Tightly packed row-major RGBA8 pixels.
transfers: TransferReceiptExact device-to-host transfer receipt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadbackImage
impl RefUnwindSafe for ReadbackImage
impl Send for ReadbackImage
impl Sync for ReadbackImage
impl Unpin for ReadbackImage
impl UnsafeUnpin for ReadbackImage
impl UnwindSafe for ReadbackImage
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