From 45b3d663016fa7e56c2b5ab9b528a4ee61a513ec Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 19 May 2025 22:25:36 -0400 Subject: [PATCH] Fix error message for sampler arrays (#7704) --- CHANGELOG.md | 4 ++++ wgpu-core/src/binding_model.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e41b14006d..caa3d25b8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,10 @@ Bottom level categories: ### Bug Fixes +#### General + +- Fix error message for sampler array limit. By @LPGhatguy in [#7704](https://github.com/gfx-rs/wgpu/pull/7704). + #### Naga Naga now infers the correct binding layout when a resource appears only in an assignment to `_`. By @andyleiserson in [#7540](https://github.com/gfx-rs/wgpu/pull/7540). diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index 1efa94338a..1c584b9728 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -255,7 +255,7 @@ impl BindingTypeMaxCountErrorKind { "max_binding_array_elements_per_shader_stage" } BindingTypeMaxCountErrorKind::BindingArraySamplerElements => { - "max_binding_array_elements_per_shader_stage" + "max_binding_array_sampler_elements_per_shader_stage" } } }