Enum wgpu_types::AstcBlock
source · #[repr(C)]pub enum AstcBlock {
Show 14 variants
B4x4 = 0,
B5x4 = 1,
B5x5 = 2,
B6x5 = 3,
B6x6 = 4,
B8x5 = 5,
B8x6 = 6,
B8x8 = 7,
B10x5 = 8,
B10x6 = 9,
B10x8 = 10,
B10x10 = 11,
B12x10 = 12,
B12x12 = 13,
}
Expand description
ASTC block dimensions
Variants§
B4x4 = 0
4x4 block compressed texture. 16 bytes per block (8 bit/px).
B5x4 = 1
5x4 block compressed texture. 16 bytes per block (6.4 bit/px).
B5x5 = 2
5x5 block compressed texture. 16 bytes per block (5.12 bit/px).
B6x5 = 3
6x5 block compressed texture. 16 bytes per block (4.27 bit/px).
B6x6 = 4
6x6 block compressed texture. 16 bytes per block (3.56 bit/px).
B8x5 = 5
8x5 block compressed texture. 16 bytes per block (3.2 bit/px).
B8x6 = 6
8x6 block compressed texture. 16 bytes per block (2.67 bit/px).
B8x8 = 7
8x8 block compressed texture. 16 bytes per block (2 bit/px).
B10x5 = 8
10x5 block compressed texture. 16 bytes per block (2.56 bit/px).
B10x6 = 9
10x6 block compressed texture. 16 bytes per block (2.13 bit/px).
B10x8 = 10
10x8 block compressed texture. 16 bytes per block (1.6 bit/px).
B10x10 = 11
10x10 block compressed texture. 16 bytes per block (1.28 bit/px).
B12x10 = 12
12x10 block compressed texture. 16 bytes per block (1.07 bit/px).
B12x12 = 13
12x12 block compressed texture. 16 bytes per block (0.89 bit/px).