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 {