[][src]Function gli_rs::save_kmg

pub fn save_kmg(texture: &impl GliTexture, path: impl AsRef<Path>) -> Result<()>

Save a texture storage_linear to a KMG (Khronos Image) file.

texture is texture to save.

path is the path for where to save the file. It must include the filename and filename extension.

This function ignores the filename extension in the path and save to KMG anyway but keep the requested filename extension.