pub fn decompress_blocks_as_rgba8(
variant: CompressionVariant,
width: u32,
height: u32,
blocks_data: &[u8],
rgba_data: &mut [u8],
)Expand description
Helper function to easily decompress block data into RGBA8 data.
ยงPanics
- The
blocks_datahas not the expected size (variant.blocks_byte_size()) - The
rgba_datahas not the expected size (width * height * 4)