PackAstcBlockDimension

Enum PackAstcBlockDimension 

Source
#[repr(u32)]
pub enum PackAstcBlockDimension {
Show 24 variants Dim4x4 = 0, Dim5x4 = 1, Dim5x5 = 2, Dim6x5 = 3, Dim6x6 = 4, Dim8x5 = 5, Dim8x6 = 6, Dim10x5 = 7, Dim10x6 = 8, Dim8x8 = 9, Dim10x8 = 10, Dim10x10 = 11, Dim12x10 = 12, Dim12x12 = 13, Dim3x3x3 = 14, Dim4x3x3 = 15, Dim4x4x3 = 16, Dim4x4x4 = 17, Dim5x4x4 = 18, Dim5x5x4 = 19, Dim5x5x5 = 20, Dim6x5x5 = 21, Dim6x6x5 = 22, Dim6x6x6 = 23,
}
Expand description

Block dimensions for ASTC compression.

This only applies to Arm’s ASTC encoder, which is in libktx-rs-sys/build/KTX-Software/lib/astc-encoder.

Variants§

§

Dim4x4 = 0

2D, 8.0 bpp

§

Dim5x4 = 1

2D, 6.40 bpp

§

Dim5x5 = 2

2D, 5.12 bpp

§

Dim6x5 = 3

2D, 4.27 bpp

§

Dim6x6 = 4

2D, 3.56 bpp

§

Dim8x5 = 5

2D, 3.20 bpp

§

Dim8x6 = 6

2D, 2.67 bpp

§

Dim10x5 = 7

2D, 2.56 bpp

§

Dim10x6 = 8

2D, 2.13 bpp

§

Dim8x8 = 9

2D, 2.00 bpp

§

Dim10x8 = 10

2D, 1.60 bpp

§

Dim10x10 = 11

2D, 1.28 bpp

§

Dim12x10 = 12

2D, 1.07 bpp

§

Dim12x12 = 13

2D, 0.89 bpp

§

Dim3x3x3 = 14

3D, 4.74 bpp

§

Dim4x3x3 = 15

3D, 3.56 bpp

§

Dim4x4x3 = 16

3D, 2.67 bpp

§

Dim4x4x4 = 17

3D, 2.00 bpp

§

Dim5x4x4 = 18

3D, 1.60 bpp

§

Dim5x5x4 = 19

3D, 1.28 bpp

§

Dim5x5x5 = 20

3D, 1.02 bpp

§

Dim6x5x5 = 21

3D, 0.85 bpp

§

Dim6x6x5 = 22

3D, 0.71 bpp

§

Dim6x6x6 = 23

3D, 0.59 bpp

Trait Implementations§

Source§

impl Clone for PackAstcBlockDimension

Source§

fn clone(&self) -> PackAstcBlockDimension

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PackAstcBlockDimension

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PackAstcBlockDimension

Source§

fn eq(&self, other: &PackAstcBlockDimension) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for PackAstcBlockDimension

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for PackAstcBlockDimension

Source§

impl Eq for PackAstcBlockDimension

Source§

impl StructuralPartialEq for PackAstcBlockDimension

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.