pub struct Header {
pub height: u32,
pub width: u32,
pub mipmap_count: u32,
pub compression: Compression,
pub fourcc: [u8; 4],
pub pixel_format: PixelFormat,
pub pixel_bytes: usize,
pub channel_masks: [u32; 4],
}
Expand description
Represents a parsed DDS header. Has several convenience attributes.
Fields§
§height: u32
Height of the main image
width: u32
Width of the main image
mipmap_count: u32
How many levels of mipmaps there are
compression: Compression
Compression type used
fourcc: [u8; 4]
The 4-character code for this image
pixel_format: PixelFormat
The pixel format used
pixel_bytes: usize
The number of bytes used per-pixel
channel_masks: [u32; 4]
The bit masks used for each channel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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