Enum libktx_rs::enums::PackAstcBlockDimension[][src]

#[repr(u32)]
pub enum PackAstcBlockDimension {
Show 24 variants Dim4x4, Dim5x4, Dim5x5, Dim6x5, Dim6x6, Dim8x5, Dim8x6, Dim10x5, Dim10x6, Dim8x8, Dim10x8, Dim10x10, Dim12x10, Dim12x12, Dim3x3x3, Dim4x3x3, Dim4x4x3, Dim4x4x4, Dim5x4x4, Dim5x5x4, Dim5x5x5, Dim6x5x5, Dim6x6x5, Dim6x6x6,
}
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

2D, 8.0 bpp

Dim5x4

2D, 6.40 bpp

Dim5x5

2D, 5.12 bpp

Dim6x5

2D, 4.27 bpp

Dim6x6

2D, 3.56 bpp

Dim8x5

2D, 3.20 bpp

Dim8x6

2D, 2.67 bpp

Dim10x5

2D, 2.56 bpp

Dim10x6

2D, 2.13 bpp

Dim8x8

2D, 2.00 bpp

Dim10x8

2D, 1.60 bpp

Dim10x10

2D, 1.28 bpp

Dim12x10

2D, 1.07 bpp

Dim12x12

2D, 0.89 bpp

Dim3x3x3

3D, 4.74 bpp

Dim4x3x3

3D, 3.56 bpp

Dim4x4x3

3D, 2.67 bpp

Dim4x4x4

3D, 2.00 bpp

Dim5x4x4

3D, 1.60 bpp

Dim5x5x4

3D, 1.28 bpp

Dim5x5x5

3D, 1.02 bpp

Dim6x5x5

3D, 0.85 bpp

Dim6x6x5

3D, 0.71 bpp

Dim6x6x6

3D, 0.59 bpp

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.