This commit is contained in:
2021-03-14 16:27:32 +01:00
parent c2e3c4e0e4
commit 00204104dd
2 changed files with 10 additions and 5 deletions

View File

@@ -37,4 +37,12 @@ pub fn upload_texture_from_file(path: &str, renderer: &mut VulkanRenderer) -> Re
}
Ok(())
}
pub fn get_block_size(format: Format) -> Option<u32> {
match format {
Format::BC1_RGBUnormBlock => Some(8),
Format::BC5UnormBlock => Some(16),
_ => None
}
}