From 35cd505e5d37ccdd5293c3d4252aaefca75d6681 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 12:45:40 -0800 Subject: [PATCH] Fix forward: the conformance docs' FORMATS links and a wrapped code span The gate on 47beec7b7a failed clippy (all three configurations) and workspace Rustdoc in metal2vulkan-conformance: - seven public all() docs said "in [`FORMATS`] order", an intra-doc link to a private constant (astc_textures, compressed_decode, compressed_moves, compressed_views, etc_textures, pvrtc_cpu_order, pvrtc_rows); they now name it as code, unlinked; - buffer_depth_samples' rewrapped header put "+ (x * n + s) * bpp`" at a line's start, which Markdown reads as a list item with the rest of the paragraph as its lazy continuation (clippy's doc_lazy_continuation); the code span is on one line again. --- .../src/cases/astc_textures.rs | 2 +- .../src/cases/buffer_depth_samples.rs | 14 +++++++------- .../src/cases/compressed_decode.rs | 2 +- .../src/cases/compressed_moves.rs | 2 +- .../src/cases/compressed_views.rs | 2 +- .../src/cases/etc_textures.rs | 2 +- .../src/cases/pvrtc_cpu_order.rs | 2 +- .../src/cases/pvrtc_rows.rs | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/crates/metal2vulkan-conformance/src/cases/astc_textures.rs b/crates/metal2vulkan-conformance/src/cases/astc_textures.rs index 149521815..18a946af2 100644 --- a/crates/metal2vulkan-conformance/src/cases/astc_textures.rs +++ b/crates/metal2vulkan-conformance/src/cases/astc_textures.rs @@ -352,7 +352,7 @@ pub struct AstcTextures { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()).map(|at| AstcTextures { at }).collect() } diff --git a/crates/metal2vulkan-conformance/src/cases/buffer_depth_samples.rs b/crates/metal2vulkan-conformance/src/cases/buffer_depth_samples.rs index 429844cff..ba28962ff 100644 --- a/crates/metal2vulkan-conformance/src/cases/buffer_depth_samples.rs +++ b/crates/metal2vulkan-conformance/src/cases/buffer_depth_samples.rs @@ -2,13 +2,13 @@ //! out. //! //! Metal's answer here is a **rule**, not a table — "each copy unit of the buffer lands in its -//! sample by the layout measured for colour, texel `(x, y)` sample `s` at `offset + y * bytesPerRow -//! + (x * n + s) * bpp`, the samples outside a region keep the clear, and the copy back out returns -//! the buffer bit for bit" — measured by a probe on an **Apple M4**. Every call on the path is -//! public: a render pass that clears and draws nothing, `copyFromBuffer:toTexture:` into the depth -//! or stencil aspect, a dispatch that reads every sample, and `copyFromTexture:toBuffer:` back. So -//! record mode **runs** these cases on the oracle, and the recordings hold Metal's own numbers on -//! an Apple M3 Max, macOS 27.0.1. Nothing is carried. +//! sample by the layout measured for colour, texel `(x, y)` sample `s` at +//! `offset + y * bytesPerRow + (x * n + s) * bpp`, the samples outside a region keep the clear, and +//! the copy back out returns the buffer bit for bit" — measured by a probe on an **Apple M4**. +//! Every call on the path is public: a render pass that clears and draws nothing, +//! `copyFromBuffer:toTexture:` into the depth or stencil aspect, a dispatch that reads every sample, +//! and `copyFromTexture:toBuffer:` back. So record mode **runs** these cases on the oracle, and the +//! recordings hold Metal's own numbers on an Apple M3 Max, macOS 27.0.1. Nothing is carried. //! //! **One case per row**, as the multisample fill family does, so a sample count the venue does not //! render stops that row alone and the suite counts it diff --git a/crates/metal2vulkan-conformance/src/cases/compressed_decode.rs b/crates/metal2vulkan-conformance/src/cases/compressed_decode.rs index cdd740295..40b6c58e5 100644 --- a/crates/metal2vulkan-conformance/src/cases/compressed_decode.rs +++ b/crates/metal2vulkan-conformance/src/cases/compressed_decode.rs @@ -196,7 +196,7 @@ pub struct CompressedDecode { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()) .map(|at| CompressedDecode { at }) diff --git a/crates/metal2vulkan-conformance/src/cases/compressed_moves.rs b/crates/metal2vulkan-conformance/src/cases/compressed_moves.rs index 297572ab9..f15144e00 100644 --- a/crates/metal2vulkan-conformance/src/cases/compressed_moves.rs +++ b/crates/metal2vulkan-conformance/src/cases/compressed_moves.rs @@ -850,7 +850,7 @@ pub struct CompressedMoves { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()) .map(|at| CompressedMoves { at }) diff --git a/crates/metal2vulkan-conformance/src/cases/compressed_views.rs b/crates/metal2vulkan-conformance/src/cases/compressed_views.rs index fa37f9561..b38cfdb0c 100644 --- a/crates/metal2vulkan-conformance/src/cases/compressed_views.rs +++ b/crates/metal2vulkan-conformance/src/cases/compressed_views.rs @@ -366,7 +366,7 @@ pub struct CompressedViews { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()) .map(|at| CompressedViews { at }) diff --git a/crates/metal2vulkan-conformance/src/cases/etc_textures.rs b/crates/metal2vulkan-conformance/src/cases/etc_textures.rs index 756e72c11..4a3d5a53e 100644 --- a/crates/metal2vulkan-conformance/src/cases/etc_textures.rs +++ b/crates/metal2vulkan-conformance/src/cases/etc_textures.rs @@ -188,7 +188,7 @@ pub struct EtcTextures { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()).map(|at| EtcTextures { at }).collect() } diff --git a/crates/metal2vulkan-conformance/src/cases/pvrtc_cpu_order.rs b/crates/metal2vulkan-conformance/src/cases/pvrtc_cpu_order.rs index 468416395..26c038e63 100644 --- a/crates/metal2vulkan-conformance/src/cases/pvrtc_cpu_order.rs +++ b/crates/metal2vulkan-conformance/src/cases/pvrtc_cpu_order.rs @@ -253,7 +253,7 @@ pub struct PvrtcCpuOrder { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()).map(|at| PvrtcCpuOrder { at }).collect() } diff --git a/crates/metal2vulkan-conformance/src/cases/pvrtc_rows.rs b/crates/metal2vulkan-conformance/src/cases/pvrtc_rows.rs index 96b83912c..7435f2410 100644 --- a/crates/metal2vulkan-conformance/src/cases/pvrtc_rows.rs +++ b/crates/metal2vulkan-conformance/src/cases/pvrtc_rows.rs @@ -518,7 +518,7 @@ pub struct PvrtcRows { at: usize, } -/// Every format's case, in [`FORMATS`] order. +/// Every format's case, in `FORMATS` order. pub fn all() -> Vec { (0..FORMATS.len()).map(|at| PvrtcRows { at }).collect() }