diff --git a/tests/tests/wgpu-gpu/regression/issue_9316.rs b/tests/tests/wgpu-gpu/regression/issue_9316.rs index ae8f80f97..55682767d 100644 --- a/tests/tests/wgpu-gpu/regression/issue_9316.rs +++ b/tests/tests/wgpu-gpu/regression/issue_9316.rs @@ -101,15 +101,15 @@ fn dynamic_offset_bounds_with_unordered_entries(ctx: TestingContext) { ( &[0], concat!( - "BindGroup with 'bg' label 0 expects 2 dynamic offsets. ", - "However 1 dynamic offset was provided.", + "BindGroup with 'bg' label at index 0 expects 2 dynamic offsets, but ", + "1 dynamic offset was provided", ), ), ( &[0, align32, 0], concat!( - "BindGroup with 'bg' label 0 expects 2 dynamic offsets. ", - "However 3 dynamic offsets were provided.", + "BindGroup with 'bg' label at index 0 expects 2 dynamic offsets, but ", + "3 dynamic offsets were provided", ), ), ]; diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index 670d4a2aa..5bbf6b7f2 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -1609,7 +1609,7 @@ pub enum BindError { )] DynamicOffsetCountNotZero { group: u32, actual: usize }, #[error( - "{bind_group} {group} expects {expected} dynamic offset{s0}. However {actual} dynamic offset{s1} {to_be} provided.", + "{bind_group} at index {group} expects {expected} dynamic offset{s0}, but {actual} dynamic offset{s1} {to_be} provided", s0 = if *.expected >= 2 { "s" } else { "" }, s1 = if *.actual >= 2 { "s" } else { "" }, to_be = if *.actual == 1 { "was" } else { "were" },