Struct dds::DDS [] [src]

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

Represents a parsed DDS file

Fields

The parsed DDS header

Mipmap layers

Methods

impl DDS
[src]

[src]

Parses a Header object from a raw u8 buffer.

[src]

Parses the raw header from the image. Useful for getting information not contained in the normal parsed Header struct.

[src]

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

[src]

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