pub struct MipLevel {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
One level of a mip chain: dimensions plus tightly packed RGBA8 pixels
(width * height * 4 bytes, no row padding).
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
pixels: Vec<u8>Row-major pixels of this level.
Auto Trait Implementations§
impl Freeze for MipLevel
impl RefUnwindSafe for MipLevel
impl Send for MipLevel
impl Sync for MipLevel
impl Unpin for MipLevel
impl UnsafeUnpin for MipLevel
impl UnwindSafe for MipLevel
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