Files
metal2vulkan/docs
Anees Iqbal 31c1161940 rt: SIMD groups at Metal's width, and robustImageAccess, at the floor
The floor requires Vulkan 1.3's subgroupSizeControl, computeFullSubgroups and
robustImageAccess, enabled on every device; the translator's profile takes
them through the enable set. Where a device lists compute in
requiredSubgroupSizeStages with 32 between its sizes, the translator pins a
kernel's SIMD groups to subgroups of 32 (the Direct tier); the compute
pipeline state now takes such a kernel: each VkPipeline chains
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo where the tier pins a size
(the translator pins only a stage the device lists, VUID-...-pNext-02755) and
carries the stage's REQUIRE_FULL_SUBGROUPS. "A stage that pins a subgroup
size" leaves Gap::KernelInput. A flattened tier's LocalSizeConstraint is
supplied: a dispatch whose threadgroup is not whole SIMD groups is refused at
the dispatch as the new Gap::PartialSimdgroups, since the emulated-SIMD-group
variant is not built. With robustImageAccess on, the translator drops its
image write and atomic guards on every device; robustImageAccess2,
robustBufferAccess, robustBufferAccess2 and nullDescriptor stay off.

Tests: the floor names each new missing feature; the translator's enable set
holds robustImageAccess and none of a reported geometryShader,
samplerMirrorClampToEdge or VK_EXT_robustness2 (host); every device's
translator profile has robustImageAccess and none of robustImageAccess2,
robustBufferAccess, robustBufferAccess2, nullDescriptor (device); and
simd_float_products runs Direct, pinned at 32, wherever compute can pin 32,
refusing a 16-thread threadgroup and answering Metal's products (device).

REFUSALS.md and the API signatures regenerated. Verified: cargo fmt; the lint
and the device legs follow.
2026-11-17 09:55:14 -08:00
..