From c044c86bc2956903c9dc77066ef2ea8c013b7632 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Mon, 13 Jul 2026 15:53:52 +0200 Subject: [PATCH] refactor: hoist `max_storage_buffers_per_shader_stage` above textures counterpart This enforces spec. ordering in this one spot that doesn't follow it, so it will make subsequent commits easier to follow. --- wgpu-hal/src/dx12/adapter.rs | 2 +- wgpu-hal/src/metal/adapter.rs | 2 +- wgpu-hal/src/vulkan/adapter.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index f2e0311e7..e59e9d528 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -906,8 +906,8 @@ impl super::Adapter { max_bindings_per_bind_group: u32::MAX, max_sampled_textures_per_shader_stage, max_samplers_per_shader_stage, - max_storage_textures_per_shader_stage, max_storage_buffers_per_shader_stage, + max_storage_textures_per_shader_stage, max_uniform_buffers_per_shader_stage, // See `InputSlot` param docs: https://learn.microsoft.com/en-ca/windows/win32/api/d3d12/ns-d3d12-d3d12_input_element_desc max_vertex_buffers: 16, diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index 4f56b712d..b62402ccb 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -1427,8 +1427,8 @@ impl super::CapabilitiesQuery { // "Maximum number of entries in the sampler state argument table, per graphics or kernel function" max_samplers_per_shader_stage: 16, max_sampled_textures_per_shader_stage, - max_storage_textures_per_shader_stage, max_storage_buffers_per_shader_stage, + max_storage_textures_per_shader_stage, max_uniform_buffers_per_shader_stage, max_vertex_buffers, max_buffer_size: self.max_buffer_size, diff --git a/wgpu-hal/src/vulkan/adapter.rs b/wgpu-hal/src/vulkan/adapter.rs index 1c84bd2c8..517ffa916 100644 --- a/wgpu-hal/src/vulkan/adapter.rs +++ b/wgpu-hal/src/vulkan/adapter.rs @@ -1766,8 +1766,8 @@ impl PhysicalDeviceProperties { .max_descriptor_set_storage_buffers_dynamic, max_samplers_per_shader_stage, max_sampled_textures_per_shader_stage, - max_storage_textures_per_shader_stage, max_storage_buffers_per_shader_stage, + max_storage_textures_per_shader_stage, max_uniform_buffers_per_shader_stage, max_vertex_buffers: limits.max_vertex_input_bindings, max_buffer_size,