pub fn decode_rgba(
format: ImageFormat,
width: u32,
height: u32,
data: &[u8],
) -> Option<Vec<u8>>Expand description
Decode one level to tightly packed RGBA8 (width * height * 4 bytes).
Returns None for formats that are not colour images (R32F, depth).