fn image_to_tex_image_data(
    pixel_format: PixelFormat,
    format: TexFormat,
    data_type: TexDataType,
    pixels: Vec<u8>
) -> Vec<u8> 
Expand description

Translates an image in rgba8 (red in the first byte) format to the format that was requested of TexImage.