mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
diag(core): add backticks for code-like things in TooMany{MipLevels,ArrayLayers}
This commit is contained in:
1 parent
83923e0e29
commit
591ad3ddfc
1 file changed
+4
-4
@@ -1838,8 +1838,8 @@ pub enum CreateTextureViewError {
|
||||
#[error("Array layer count is 0")]
|
||||
ZeroArrayLayerCount,
|
||||
#[error(
|
||||
"TextureView spans mip levels [{base_mip_level}, {end_mip_level}) \
|
||||
(mipLevelCount {mip_level_count}) but the texture view only has {total} total mip levels",
|
||||
"`TextureView` spans mip levels [{base_mip_level}, {end_mip_level}) \
|
||||
(`mipLevelCount` {mip_level_count}) but the texture view only has {total} total mip levels",
|
||||
end_mip_level = base_mip_level + mip_level_count
|
||||
)]
|
||||
TooManyMipLevels {
|
||||
@@ -1848,8 +1848,8 @@ pub enum CreateTextureViewError {
|
||||
total: u32,
|
||||
},
|
||||
#[error(
|
||||
"TextureView spans array layers [{base_array_layer}, {end_array_layer}) \
|
||||
(arrayLayerCount {array_layer_count}) but the texture view only has {total} total layers",
|
||||
"`TextureView` spans array layers [{base_array_layer}, {end_array_layer}) \
|
||||
(`arrayLayerCount` {array_layer_count}) but the texture view only has {total} total layers",
|
||||
end_array_layer = base_array_layer + array_layer_count
|
||||
)]
|
||||
TooManyArrayLayers {
|
||||
|
||||
Reference in new issue
Block a user