Skip to content

Commit

Permalink
Add missing acceleration structure buffer flag (#5760)
Browse files Browse the repository at this point in the history
* add the missing acceleration structure buffer flag

* fmt
  • Loading branch information
Vecvec authored Jun 2, 2024
1 parent e7a528b commit 7954a6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wgpu-hal/src/vulkan/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7954a6b

Please sign in to comment.