diag: re-word CreateBindGroupError::InvalidTextureSampleType

This commit is contained in:
Erich Gubler 2024-11-12 15:36:47 -05:00
parent 5fb5719cdc
commit b5986a9df1
2 changed files with 4 additions and 4 deletions

View File

@ -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 })"
)),
);
});

View File

@ -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,