From dfbeebc0d8105bc3931a436e6b02722c44a2dfc9 Mon Sep 17 00:00:00 2001 From: teridax Date: Mon, 17 Apr 2023 20:35:33 +0200 Subject: [PATCH] fixed buffer inaccessible --- src/shader/pathtracing/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shader/pathtracing/mod.rs b/src/shader/pathtracing/mod.rs index 38c13a8..42ae338 100644 --- a/src/shader/pathtracing/mod.rs +++ b/src/shader/pathtracing/mod.rs @@ -336,7 +336,7 @@ fn create_gpu_buffer(vertices: &Vec<[f32; 4]>, indices: &Vec, 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, 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, materials: &V ..Default::default() }, AllocationCreateInfo { - usage: MemoryUsage::DeviceOnly, + usage: MemoryUsage::Upload, ..Default::default() }, materials.clone(),