Skip to main content

astc_context

Function astc_context 

Source
pub fn astc_context(
    rgba: &[u8],
    width: u32,
    height: u32,
    block: (u8, u8),
    meter: &Arc<Meter>,
) -> Result<MeteredVec<u8>, WriteError>
Expand description

Compresses standalone U8 RGBA context storage at a legal 2D ASTC footprint.