From 0cc88f6dd7d9942e0752e6051fe3e2f7969ba3b4 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 22:29:27 -0800 Subject: [PATCH] Runtime README: programmable sample positions are not built What: a known gap of render encoders. The render pass descriptor has no field for setSamplePositions:count:, and the runtime answers no programmableSamplePositionsSupported, so every multisample pass rasterizes at Vulkan's standard sample locations (standardSampleLocations, in the floor), Metal's default positions at 1, 2 and 4 samples. A pass whose set differs from the defaults samples at the defaults, with no refusal. VK_EXT_sample_locations, Vulkan's form for set positions, is not enabled. Why: a guest sets sample positions (arm64 GL walks on the Mac host), and the README did not say that the runtime does not take them. The consumer answers the support query itself. How verified: read from the tree at d825e52482. RenderPassDescriptor (pass.rs) has no sample-position field; no runtime source names sample locations but floor.rs's standardSampleLocations limit; docs/METAL-COVERAGE.md lists setSamplePositions:count: and programmableSamplePositionsSupported as missing. Docs only; nothing built or run. --- crates/metal2vulkan-runtime/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 5ff59aa94..7890b9709 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -4374,6 +4374,13 @@ cache is answered compile-required on both. streams' passes render into one or two color attachments and a stencil attachment or a `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`, + so 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. - 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