[][src]Enum nvtt_rs::TextureType

pub enum TextureType {
    D2,
    Cube,
    D3,
    Array,
}

The type of the texture.

Variants

D2

The texture is a standard 2D image with a width and a height.

Cube

The texture is a cube texture comprised of 6 2D textures for each face of the cube.

D3

The texture is a 3D texture, with a width, height and depth.

Array

The texture is an array of 2D textures.

Trait Implementations

impl Clone for TextureType[src]

impl Copy for TextureType[src]

impl Debug for TextureType[src]

impl Default for TextureType[src]

impl Eq for TextureType[src]

impl<'_> From<&'_ TextureType> for NvttTextureType[src]

impl From<TextureType> for NvttTextureType[src]

impl Hash for TextureType[src]

impl PartialEq<TextureType> for TextureType[src]

impl PartialEq<TextureType> for NvttTextureType[src]

impl PartialEq<u32> for TextureType[src]

impl StructuralEq for TextureType[src]

impl StructuralPartialEq for TextureType[src]

impl TryFrom<u32> for TextureType[src]

type Error = EnumConvertError<NvttTextureType>

The type returned in the event of a conversion error.

Auto Trait Implementations

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.