diag(core): add backticks for code-like things in TooMany{MipLevels,ArrayLayers}

This commit is contained in:
Erich Gubler authored and Connor Fitzgerald committed 2026-03-25 13:06:23 -04:00
1 parent 83923e0e29
commit 591ad3ddfc
1 file changed
+4 -4
+4 -4
View File
@@ -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 {