[][src]Enum nvtt_rs::Format

pub enum Format {
    Bc1,
    Bc1a,
    Bc2,
    Bc3,
    Bc3n,
    Bc3Rgbm,
    Bc4,
    Bc5,
    Bc6,
    Bc7,
    Ctx1,
    Dxt1,
    Dxt1a,
    Dxt1n,
    Dxt3,
    Dxt5,
    Dxt5n,
    Etc1,
    Etc2R,
    Etc2Rg,
    Etc2Rgb,
    Etc2Rgba,
    Etc2Rgbm,
    Etc2RgbA1,
    Pvr2BppRgb,
    Pvr2BppRgba,
    Pvr4BppRgb,
    Pvr4BppRgba,
    Rgb,
    Rgba,
}

Specify the output format.

You can see the Microsoft Documentation for more information about the Bc formats.

Variants

Bc1

Use the bc1 compression algorithm. This supports images with 3 rgb channels.

Bc1a

Use the bc1 with alpha compression algorithm. This supports images with 3 rgb channels, and 1 bit for the alpha channel.

Bc2

Use bc2 compression, which supports rgb channels, and 4 bits of alpha.

Bc3

Use bc3 compression, which supports rgb channels, and 8 bits of alpha.

Bc3n

@TODO

Bc3Rgbm

@TODO

Bc4

Use bc4 compression, which supports a single red channel using 8 bits.

Bc5

Use bc5 compression, which supports two channels of 8 bits each.

Bc6

Use bc6 compression, which supports HDR encoded textures. See the MSDN docs for more.

Bc7

Use bc7 compression, which supports high quality Rgb and Rgba textures. See the MSDN docs for more.

Ctx1
Dxt1
Dxt1a
Dxt1n
Dxt3
Dxt5
Dxt5n
Etc1
Etc2R
Etc2Rg
Etc2Rgb
Etc2Rgba
Etc2Rgbm
Etc2RgbA1
Pvr2BppRgb
Pvr2BppRgba
Pvr4BppRgb
Pvr4BppRgba
Rgb
Rgba

Trait Implementations

impl Clone for Format[src]

impl Copy for Format[src]

impl Debug for Format[src]

impl Eq for Format[src]

impl<'_> From<&'_ Format> for NvttFormat[src]

impl From<Format> for NvttFormat[src]

impl Hash for Format[src]

impl PartialEq<Format> for Format[src]

impl PartialEq<Format> for NvttFormat[src]

impl PartialEq<u32> for Format[src]

impl StructuralEq for Format[src]

impl StructuralPartialEq for Format[src]

impl TryFrom<u32> for Format[src]

type Error = EnumConvertError<NvttFormat>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Format

impl Send for Format

impl Sync for Format

impl Unpin for Format

impl UnwindSafe for Format

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.