From 591ad3ddfc9fc984367c9eb364126f0b259b528c Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sat, 3 Jan 2026 09:06:50 -0700 Subject: [PATCH] diag(core): add backticks for code-like things in `TooMany{MipLevels,ArrayLayers}` --- wgpu-core/src/resource.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/resource.rs b/wgpu-core/src/resource.rs index f22076cba..454ece7b4 100644 --- a/wgpu-core/src/resource.rs +++ b/wgpu-core/src/resource.rs @@ -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 {