#[repr(C)]
pub enum AstcBlock {
Show 14 variants
B4x4,
B5x4,
B5x5,
B6x5,
B6x6,
B8x5,
B8x6,
B8x8,
B10x5,
B10x6,
B10x8,
B10x10,
B12x10,
B12x12,
}
Expand description
ASTC block dimensions
Variants
B4x4
4x4 block compressed texture. 16 bytes per block (8 bit/px).
B5x4
5x4 block compressed texture. 16 bytes per block (6.4 bit/px).
B5x5
5x5 block compressed texture. 16 bytes per block (5.12 bit/px).
B6x5
6x5 block compressed texture. 16 bytes per block (4.27 bit/px).
B6x6
6x6 block compressed texture. 16 bytes per block (3.56 bit/px).
B8x5
8x5 block compressed texture. 16 bytes per block (3.2 bit/px).
B8x6
8x6 block compressed texture. 16 bytes per block (2.67 bit/px).
B8x8
8x8 block compressed texture. 16 bytes per block (2 bit/px).
B10x5
10x5 block compressed texture. 16 bytes per block (2.56 bit/px).
B10x6
10x6 block compressed texture. 16 bytes per block (2.13 bit/px).
B10x8
10x8 block compressed texture. 16 bytes per block (1.6 bit/px).
B10x10
10x10 block compressed texture. 16 bytes per block (1.28 bit/px).
B12x10
12x10 block compressed texture. 16 bytes per block (1.07 bit/px).
B12x12
12x12 block compressed texture. 16 bytes per block (0.89 bit/px).
Trait Implementations
sourceimpl<'de> Deserialize<'de> for AstcBlock
impl<'de> Deserialize<'de> for AstcBlock
sourcefn 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>,
sourceimpl Serialize for AstcBlock
impl Serialize for AstcBlock
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.