Add missing acceleration structure buffer flag (#5760)

* add the missing acceleration structure buffer flag

* fmt
This commit is contained in:
Vecvec 2024-06-02 19:59:41 +12:00 committed by GitHub
parent e7a528b62b
commit 7954a6bd3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {