fixed buffer inaccessible

This commit is contained in:
Sven Vogel 2023-04-17 20:35:33 +02:00
parent b911f89e86
commit dfbeebc0d8
1 changed files with 3 additions and 3 deletions

View File

@ -336,7 +336,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec<u32>, materials: &V
..Default::default()
},
AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly,
usage: MemoryUsage::Upload,
..Default::default()
},
vertices.clone(),
@ -349,7 +349,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec<u32>, materials: &V
..Default::default()
},
AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly,
usage: MemoryUsage::Upload,
..Default::default()
},
indices.clone(),
@ -362,7 +362,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec<u32>, materials: &V
..Default::default()
},
AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly,
usage: MemoryUsage::Upload,
..Default::default()
},
materials.clone(),