mesh correct and textures too

This commit is contained in:
zomseffen 2024-04-27 08:06:18 +02:00
parent 31d4a139ef
commit 8afb2d2a3c
5 changed files with 9 additions and 5 deletions

View file

@ -130,7 +130,7 @@ pub unsafe fn create_index_buffer(
device: &Device,
data: &mut app_data::AppData,
) -> Result<()> {
let size = (size_of::<u16>() * data.indices.len()) as u64;
let size = (size_of::<u32>() * data.indices.len()) as u64;
let (staging_buffer, staging_buffer_memory) = create_buffer(
instance,