Struct dds::DDS [] [src]

pub struct DDS {
    pub header: Header,
    pub layers: Vec<Vec<Pixel>>,
}

Represents a parsed DDS file

Fields

The parsed DDS header

Mipmap layers

Methods

impl DDS
[src]

Parses a Header object from a raw u8 buffer.

Decodes a buffer into a header and a series of mipmap images. Handles uncompressed and DXT1-5 compressed images.

Encodes a series of Pixels as a bunch of bytes, suitable for writing to disk, etc. Currently only supports uncompressed RGBA images