From 4bc1722e45fce616276db5358ea9a4358a026467 Mon Sep 17 00:00:00 2001 From: Vecvec Date: Sun, 22 Dec 2024 09:59:10 +1300 Subject: [PATCH 1/2] add index type to `get_acceleration_structure_build_sizes` --- wgpu-hal/src/vulkan/device.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index 4a342fcfa1..f18177292c 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -2347,6 +2347,7 @@ impl crate::Device for super::Device { for triangles in in_geometries { let mut triangle_data = vk::AccelerationStructureGeometryTrianglesDataKHR::default() + .index_type(vk::IndexType::NONE_KHR) .vertex_format(conv::map_vertex_format(triangles.vertex_format)) .max_vertex(triangles.vertex_count) .vertex_stride(triangles.vertex_stride); From 637f708bd5687993e2c363ce8dae24304c16682a Mon Sep 17 00:00:00 2001 From: Vecvec Date: Sun, 22 Dec 2024 14:12:29 +1300 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ecc4033d3..a39cd68f8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -193,6 +193,7 @@ By @ErichDonGubler in [#6456](https://github.com/gfx-rs/wgpu/pull/6456), [#6148] - Reject destroyed buffers in query set resolution. By @ErichDonGubler in [#6579](https://github.com/gfx-rs/wgpu/pull/6579). - Fix panic when dropping `Device` on some environments. By @Dinnerbone in [#6681](https://github.com/gfx-rs/wgpu/pull/6681). - Reduced the overhead of command buffer validation. By @nical in [#6721](https://github.com/gfx-rs/wgpu/pull/6721). +- Set index type to NONE in `get_acceleration_structure_build_sizes`. By @Vecvec in [#6802](https://github.com/gfx-rs/wgpu/pull/6802). #### Naga