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 of the main image

Width of the main image

How many levels of mipmaps there are

Compression type used

The 4-character code for this image

The pixel format used

The number of bytes used per-pixel

The bit masks used for each channel

Trait Implementations

impl Debug for Header
[src]

[src]

Formats the value using the given formatter.