From 74f3a2f919d8f202a9db370eeb19f20dc19454d3 Mon Sep 17 00:00:00 2001 From: Vecvec <130132884+Vecvec@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:37:13 +0000 Subject: [PATCH] [vulkan] allocate descriptors for acceleration structures (#6861) --- CHANGELOG.md | 4 ++++ wgpu-hal/src/vulkan/device.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c59c930..e4bb485c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -202,6 +202,10 @@ By @ErichDonGubler in [#6456](https://github.com/gfx-rs/wgpu/pull/6456), [#6148] - Fix crash when a texture argument is missing. By @aedm in [#6486](https://github.com/gfx-rs/wgpu/pull/6486) - Emit an error in constant evaluation, rather than crash, in certain cases where `vecN` constructors have less than N arguments. By @ErichDonGubler in [#6508](https://github.com/gfx-rs/wgpu/pull/6508). +#### Vulkan + +- Allocate descriptors for acceleration structures. By @Vecvec in [#6861](https://github.com/gfx-rs/wgpu/pull/6861). + #### D3D12 - Fix no longer showing software rasterizer adapters. By @wumpf in [#6843](https://github.com/gfx-rs/wgpu/pull/6843). diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index 6c4a2a361..3b6379cf9 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -417,6 +417,10 @@ impl vk::DescriptorType::STORAGE_BUFFER_DYNAMIC, descriptor_count.storage_buffer_dynamic, ), + ( + vk::DescriptorType::ACCELERATION_STRUCTURE_KHR, + descriptor_count.acceleration_structure, + ), ]; let filtered_counts = unfiltered_counts