mesh correct and textures too
This commit is contained in:
parent
31d4a139ef
commit
8afb2d2a3c
5 changed files with 9 additions and 5 deletions
src
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue