Enum basis_universal::transcoding::BasisTextureType[][src]

#[repr(u32)]pub enum BasisTextureType {
    TextureType2D,
    TextureType2DArray,
    TextureTypeCubemapArray,
    TextureTypeVideoFrames,
    TextureTypeVolume,
}

The type of data stored

Variants

TextureType2D

An arbitrary array of 2D RGB or RGBA images with optional mipmaps, array size = # images, each image may have a different resolution and # of mipmap levels

TextureType2DArray

An array of 2D RGB or RGBA images with optional mipmaps, array size = # images, each image has the same resolution and mipmap levels

TextureTypeCubemapArray

an array of cubemap levels, total # of images must be divisable by 6, in X+, X-, Y+, Y-, Z+, Z- order, with optional mipmaps

TextureTypeVideoFrames

An array of 2D video frames, with optional mipmaps, # frames = # images, each image has the same resolution and # of mipmap levels

TextureTypeVolume

A 3D texture with optional mipmaps, Z dimension = # images, each image has the same resolution and # of mipmap levels

Implementations

impl BasisTextureType[src]

pub fn texture_type_name(self) -> &'static str[src]

Returns the texture type's name in ASCII.

Trait Implementations

impl Clone for BasisTextureType[src]

impl Copy for BasisTextureType[src]

impl Debug for BasisTextureType[src]

impl From<u32> for BasisTextureType[src]

impl Into<u32> for BasisTextureType[src]

impl PartialEq<BasisTextureType> for BasisTextureType[src]

impl StructuralPartialEq for BasisTextureType[src]

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.