From fc8d0ccd150c30a6119c8bc0767dbc0b6dbf6cc2 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 22:36:39 -0800 Subject: [PATCH] Runtime README: a consumer that answers YES owns a dropped sample-position set What: the known gap for programmable sample positions no longer says the consumer answers the query NO until the setter is built. It says what is true: the runtime has no setter and answers nothing, every multisample pass rasterizes at the standard locations (Metal's defaults at 1, 2 and 4 samples), and a consumer that answers YES owns counting and dropping a set that differs from the defaults. Why: the consumer answers YES, as the guest's Mac does; it counts a differing set under its unbuilt render-pass items and announces it, and none has been seen in its recorded logs. The NO clause in 375e4770bf was a ruling that has been withdrawn. Verified: doc-only; the workspace Rustdoc line runs on development after the merge. --- crates/metal2vulkan-runtime/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index a8f8c7498..9964b01a4 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -4375,13 +4375,13 @@ cache is answered compile-required on both. `Depth32Float` depth attachment, each a level of a 2D texture of one sample, with `Load`, `Clear` and `DontCare` loads and `Store`, `DontCare` and `Unknown` stores. - Programmable sample positions are not built. The descriptor has no field for - `setSamplePositions:count:`, and the runtime answers no `programmableSamplePositionsSupported`: - until the setter is built, the consumer answers that query NO, and every multisample pass - rasterizes at Vulkan's standard sample locations (`standardSampleLocations`, under Floor), - which are Metal's default positions at 1, 2 and 4 samples. Metal rasterizes a pass at the - positions the program sets; a pass whose set differs from the defaults samples here at the - defaults, with no refusal. Vulkan's form for such positions is `VK_EXT_sample_locations`, which - device creation does not enable. + `setSamplePositions:count:`, and the runtime answers no `programmableSamplePositionsSupported`. + Every multisample pass rasterizes at Vulkan's standard sample locations + (`standardSampleLocations`, under Floor), which are Metal's default positions at 1, 2 and 4 + samples. Metal rasterizes a pass at the positions the program sets; a pass whose set differs + from the defaults samples here at the defaults, with no refusal. A consumer that answers the + query YES owns counting and dropping a set that differs from the defaults. Vulkan's form for + such positions is `VK_EXT_sample_locations`, which device creation does not enable. - Layered rendering refuses: in a pass of `renderTargetArrayLength` 2 or more, an attachment or a resolve texture with fewer slices from its own `slice` than the pass's length (`Refusal::AttachmentPlace`, naming the last slice the pass would render), a 3D texture's