diff --git a/tests/tests/float32_filterable.rs b/tests/tests/float32_filterable.rs index 574c07c93a..5376f924d1 100644 --- a/tests/tests/float32_filterable.rs +++ b/tests/tests/float32_filterable.rs @@ -64,9 +64,9 @@ static FLOAT32_FILTERABLE_WITHOUT_FEATURE: GpuTestConfiguration = GpuTestConfigu create_texture_binding(device, wgpu::TextureFormat::R32Float, true); }, Some(concat!( - "texture binding 0 expects sample type = float { filterable: true }, ", - "but given a view with format = r32float ", - "(sample type = float { filterable: false })" + "texture binding 0 expects sample type float { filterable: true }, ", + "but was given a view with format r32float ", + "(sample type float { filterable: false })" )), ); }); diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index f1acb9b6fd..30275f061d 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -143,7 +143,7 @@ pub enum CreateBindGroupError { view_samples: u32, }, #[error( - "Texture binding {} expects sample type = {:?}, but given a view with format = {:?} (sample type = {:?})", + "Texture binding {} expects sample type {:?}, but was given a view with format {:?} (sample type {:?})", binding, layout_sample_type, view_format,