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.
This commit is contained in:
Anees Iqbal committed 2026-11-22 22:29:27 -08:00
1 parent d825e52482
commit 0cc88f6dd7
1 file changed
+7
+7
View File
@@ -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