mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
Add missing acceleration structure buffer flag (#5760)
* add the missing acceleration structure buffer flag * fmt
This commit is contained in:
1 parent
e7a528b62b
commit
7954a6bd3e
1 file changed
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user