Enum basis_universal::transcoding::BasisTextureFormat[][src]

#[repr(i32)]pub enum BasisTextureFormat {
    ETC1S,
    UASTC4x4,
}

The compression mode/format to use

Variants

ETC1S

A lower quality mode which is based off a subset of ETC1 called “ETC1S”. Includes built-in data compression

UASTC4x4

Enable UASTC compression mode instead of the default ETC1S mode. Significantly higher texture quality, but larger files. UASTC supports an optional Rate Distortion Optimization (RDO) post-process stage that conditions the encoded UASTC texture data in the .basis file so it can be more effectively LZ compressed by the end user.

Implementations

impl BasisTextureFormat[src]

pub fn can_transcode_to_format(
    self,
    transcoder_texture_format: TranscoderTextureFormat
) -> bool
[src]

Returns true if the specified format was enabled at compile time.

Trait Implementations

impl Clone for BasisTextureFormat[src]

impl Copy for BasisTextureFormat[src]

impl Debug for BasisTextureFormat[src]

impl From<i32> for BasisTextureFormat[src]

impl Into<i32> for BasisTextureFormat[src]

impl PartialEq<BasisTextureFormat> for BasisTextureFormat[src]

impl StructuralPartialEq for BasisTextureFormat[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.