mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Add missing acceleration structure buffer flag (#5760)
* add the missing acceleration structure buffer flag * fmt
This commit is contained in:
parent
e7a528b62b
commit
7954a6bd3e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user