pub struct TexturePixels {
pub width: u32,
pub height: u32,
pub rev: u32,
pub rgba: Arc<Vec<u8>>,
}Expand description
A texture-backed image’s pixels as a frame hands them to a backend;
see DisplayList::texture_pixels.
Fields§
§width: u32§height: u32§rev: u32Moves with every update_image; a backend that uploaded this
revision has nothing to do.
rgba: Arc<Vec<u8>>Trait Implementations§
Source§impl Clone for TexturePixels
impl Clone for TexturePixels
Auto Trait Implementations§
impl Freeze for TexturePixels
impl RefUnwindSafe for TexturePixels
impl Send for TexturePixels
impl Sync for TexturePixels
impl Unpin for TexturePixels
impl UnsafeUnpin for TexturePixels
impl UnwindSafe for TexturePixels
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