stuff
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user