Hit detection

This commit is contained in:
2021-03-16 23:15:17 +01:00
parent a0bfdab902
commit 02f39453ac
4 changed files with 32 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ pub fn upload_texture_from_file(path: &str, renderer: &mut VulkanRenderer) -> Re
if is_dx10
{
let dxgi_type = u32::from_ne_bytes(tex_bytes[128..132].try_into()?);
assert!(dxgi_type == 83);
assert!(dxgi_type == 83); // BC5 Unorm Typeless
renderer.upload_texture(&tex_bytes[128+20..], tex_width, tex_height, Format::BC5UnormBlock, renderer.device.clone());
}