pub struct TextureImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
RGBA8 sRGB image, row-major, top row first.
Fields§
§width: u32§height: u32§rgba: Vec<u8>Trait Implementations§
Source§impl Clone for TextureImage
impl Clone for TextureImage
Auto Trait Implementations§
impl Freeze for TextureImage
impl RefUnwindSafe for TextureImage
impl Send for TextureImage
impl Sync for TextureImage
impl Unpin for TextureImage
impl UnsafeUnpin for TextureImage
impl UnwindSafe for TextureImage
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