#[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).
Trait Implementations§
§impl<'de> Deserialize<'de> for AstcBlock
impl<'de> Deserialize<'de> for AstcBlock
§fn deserialize<__D>(
__deserializer: __D
) -> Result<AstcBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AstcBlock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for AstcBlock
impl Serialize for AstcBlock
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for AstcBlock
impl Eq for AstcBlock
impl StructuralEq for AstcBlock
impl StructuralPartialEq for AstcBlock
Auto Trait Implementations§
impl RefUnwindSafe for AstcBlock
impl Send for AstcBlock
impl Sync for AstcBlock
impl Unpin for AstcBlock
impl UnwindSafe for AstcBlock
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.