[][src]Enum nvtt_rs::CompressionOutput

pub enum CompressionOutput {
    File,
    Memory {
        data: Vec<u8>,
        width: usize,
        height: usize,
        depth: usize,
        face: usize,
        miplevel: usize,
    },
}

Communicates the output of a compressed texture.

Variants

File

The texture was saved into the file specified on the OutputOptions.

Memory

The texture was saved into memory.

Fields of Memory

data: Vec<u8>

The bytes of the image.

width: usize

The width of the texture in pixels.

height: usize

The height of the texture in pixels.

depth: usize

The depth of the texture.

face: usize

The face of the texture.

miplevel: usize

The mipmap level of the texture.

Trait Implementations

impl Clone for CompressionOutput[src]

impl Eq for CompressionOutput[src]

impl PartialEq<CompressionOutput> for CompressionOutput[src]

impl Debug for CompressionOutput[src]

impl Hash for CompressionOutput[src]

impl StructuralPartialEq for CompressionOutput[src]

impl StructuralEq for CompressionOutput[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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