Skip to content

Commit

Permalink
diag: re-word CreateBindGroupError::InvalidTextureSampleType
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Nov 13, 2024
1 parent 5fb5719 commit b5986a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/tests/float32_filterable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })"
)),
);
});
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/binding_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b5986a9

Please sign in to comment.