Struct ddsfile::Dds [] [src]

pub struct Dds {
    pub header: Header,
    pub header10: Option<Header10>,
    pub data: Vec<u8>,
}

This is the main DirectDraw Surface file structure

Fields

Methods

impl Dds
[src]

[src]

Create a new DirectDraw Surface with a D3DFormat

[src]

Create a new DirectDraw Surface with a DxgiFormat

[src]

Read a DDS file

[src]

Write to a DDS file

[src]

Attempt to get the format of this DDS, presuming it is a D3DFormat.

[src]

Attempt to get the format of this DDS, presuming it is a DxgiFormat.

[src]

Get the format of the DDS as a trait (type-erasure)

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

This gets a reference to the data at the given array_layer (which should be 0 for textures with just one image).

[src]

This gets a reference to the data at the given array_layer (which should be 0 for textures with just one image).

Trait Implementations

impl Debug for Dds
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Dds

impl Sync for Dds