fixed buffer inaccessible
This commit is contained in:
parent
b911f89e86
commit
dfbeebc0d8
|
@ -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(),
|
||||||
|
|
Reference in New Issue