mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 18:43:52 +01:00
diag(core): parenthesize "s" in TooMany{MipLevels,ArrayLayers} msg.
This commit is contained in:
1 parent
99ffaea4cd
commit
f08572729c
1 file changed
+2
-2
@@ -1839,7 +1839,7 @@ pub enum CreateTextureViewError {
|
||||
ZeroArrayLayerCount,
|
||||
#[error(
|
||||
"`TextureView` starts at mip level {base_mip_level} and spans {mip_level_count} mip \
|
||||
levels, but the texture view only has {total} total mip levels"
|
||||
levels, but the texture view only has {total} total mip level(s)"
|
||||
)]
|
||||
TooManyMipLevels {
|
||||
base_mip_level: u32,
|
||||
@@ -1848,7 +1848,7 @@ pub enum CreateTextureViewError {
|
||||
},
|
||||
#[error(
|
||||
"`TextureView` starts at array layer {base_array_layer} and spans {array_layer_count}) \
|
||||
array layers, but the texture view only has {total} total layers"
|
||||
array layers, but the texture view only has {total} total layer(s)"
|
||||
)]
|
||||
TooManyArrayLayers {
|
||||
base_array_layer: u32,
|
||||
|
||||
Reference in new issue
Block a user