#[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
impl Clone for PackAstcBlockDimension
Source§fn clone(&self) -> PackAstcBlockDimension
fn clone(&self) -> PackAstcBlockDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackAstcBlockDimension
impl Debug for PackAstcBlockDimension
Source§impl PartialEq for PackAstcBlockDimension
impl PartialEq for PackAstcBlockDimension
Source§impl TryFrom<u32> for PackAstcBlockDimension
impl TryFrom<u32> for PackAstcBlockDimension
impl Copy for PackAstcBlockDimension
impl Eq for PackAstcBlockDimension
impl StructuralPartialEq for PackAstcBlockDimension
Auto Trait Implementations§
impl Freeze for PackAstcBlockDimension
impl RefUnwindSafe for PackAstcBlockDimension
impl Send for PackAstcBlockDimension
impl Sync for PackAstcBlockDimension
impl Unpin for PackAstcBlockDimension
impl UnwindSafe for PackAstcBlockDimension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more