From 7954a6bd3ee1b3b28050019f1e67d57fcea4efed Mon Sep 17 00:00:00 2001 From: Vecvec <130132884+Vecvec@users.noreply.github.com> Date: Sun, 2 Jun 2024 19:59:41 +1200 Subject: [PATCH] Add missing acceleration structure buffer flag (#5760) * add the missing acceleration structure buffer flag * fmt --- wgpu-hal/src/vulkan/device.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index 867b7efb2..ebb6d001d 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -2246,7 +2246,10 @@ impl crate::Device for super::Device { let vk_buffer_info = vk::BufferCreateInfo::default() .size(desc.size) - .usage(vk::BufferUsageFlags::ACCELERATION_STRUCTURE_STORAGE_KHR) + .usage( + vk::BufferUsageFlags::ACCELERATION_STRUCTURE_STORAGE_KHR + | vk::BufferUsageFlags::SHADER_DEVICE_ADDRESS, + ) .sharing_mode(vk::SharingMode::EXCLUSIVE); unsafe {