From cccd90e16163661b8a778ea447871cfdcafb82e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20S=C3=B8holm?= Date: Sun, 29 Mar 2026 22:36:10 +0200 Subject: [PATCH] Fix wrong binding array sampler limit in dx12 (#9330) --- wgpu-hal/src/dx12/adapter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index a254069f6..a86c337e2 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -940,7 +940,8 @@ impl super::Adapter { max_non_sampler_bindings: 1_000_000, max_binding_array_elements_per_shader_stage: full_heap_count, - max_binding_array_sampler_elements_per_shader_stage: full_heap_count, + max_binding_array_sampler_elements_per_shader_stage: + Direct3D12::D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE, // Source: https://microsoft.github.io/DirectX-Specs/d3d/MeshShader.html#dispatchmesh-api max_task_mesh_workgroup_total_count: if mesh_shader_supported {