pub fn encode_level( format: u32, width: u32, height: u32, rgba: &[u8], ) -> Result<TextureLevel>
Encode RGBA with a vetted native BC compressor or explicit linear packing.