Compare commits

...
This repository has been archived on 2023-12-10. You can view files and clone it, but cannot push or open issues or pull requests.

1 Commits

Author SHA1 Message Date
Sven Vogel dfbeebc0d8 fixed buffer inaccessible 2023-04-17 20:35:33 +02:00
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() ..Default::default()
}, },
AllocationCreateInfo { AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly, usage: MemoryUsage::Upload,
..Default::default() ..Default::default()
}, },
vertices.clone(), vertices.clone(),
@ -349,7 +349,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec<u32>, materials: &V
..Default::default() ..Default::default()
}, },
AllocationCreateInfo { AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly, usage: MemoryUsage::Upload,
..Default::default() ..Default::default()
}, },
indices.clone(), indices.clone(),
@ -362,7 +362,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec<u32>, materials: &V
..Default::default() ..Default::default()
}, },
AllocationCreateInfo { AllocationCreateInfo {
usage: MemoryUsage::DeviceOnly, usage: MemoryUsage::Upload,
..Default::default() ..Default::default()
}, },
materials.clone(), materials.clone(),