diff --git a/docs/API.md b/docs/API.md index 11683a042..39268a650 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1370,7 +1370,12 @@ establishes no other bit. ## 6. At bind time A kernel's dispatch runs as one or more regions, each a group count with its specialization and -push constants, and each distinct specialization is one `VkPipeline`. A kernel's +push constants, and each distinct specialization is one `VkPipeline`. A kernel whose simdgroups +run on subgroups states `RuntimeFact::LocalSizeConstraint { multiple }`: each region's local size +is a multiple of `multiple`, so every subgroup is full and, in a block every lane executes, a +simdgroup operation reads its sibling lanes by plain shuffles, none of them inactive. A dispatch +whose threadgroup size is not such a multiple runs the kernel's `EmulatedSimdgroups` variant, as +`metal2vulkan-runtime` does, which gives Metal's answers for the partial simdgroup. A kernel's partial-threadgroups variant (`LoweringInputs::partial_threadgroups`) runs a grid that is not whole threadgroups as the threadgroups its threads fill at the dispatch's threadgroup size, the last along an axis Metal's partial threadgroup, so every remainder takes the same `VkPipeline`; a