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.
This commit is contained in:
1 parent
88a5a8d641
commit
35cd505e5d
8 files changed
+14
-14
No files matched your search
@@ -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<AstcTextures> {
|
||||
(0..FORMATS.len()).map(|at| AstcTextures { at }).collect()
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<CompressedDecode> {
|
||||
(0..FORMATS.len())
|
||||
.map(|at| CompressedDecode { at })
|
||||
|
||||
@@ -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<CompressedMoves> {
|
||||
(0..FORMATS.len())
|
||||
.map(|at| CompressedMoves { at })
|
||||
|
||||
@@ -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<CompressedViews> {
|
||||
(0..FORMATS.len())
|
||||
.map(|at| CompressedViews { at })
|
||||
|
||||
@@ -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<EtcTextures> {
|
||||
(0..FORMATS.len()).map(|at| EtcTextures { at }).collect()
|
||||
}
|
||||
|
||||
@@ -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<PvrtcCpuOrder> {
|
||||
(0..FORMATS.len()).map(|at| PvrtcCpuOrder { at }).collect()
|
||||
}
|
||||
|
||||
@@ -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<PvrtcRows> {
|
||||
(0..FORMATS.len()).map(|at| PvrtcRows { at }).collect()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user