Struct dds::Header
[−]
[src]
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], }
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