Case 44f95cb5f9dd: rt6_per_primitive draws four triangles, two to each half of a 4x4 rgba32_uint
target with no pixel center on an edge, each reading its index from a device buffer at
vertex_id / 3 (0x0000, 0x0001, 0x0102, 0x0103: slices 0 to 3, viewports 0, 0, 1, 1), and the case
observes the flat varying that carries the index. In a one-layer pass with Metal's one default
viewport, a slice index at or past renderTargetArrayLength is interpreted as 0 and a viewport index
past the count draws through viewport 0 or the clamped one, here the same (the Metal Shading
Language specification, 5.10), so each triangle covers its own pixels. Every vertex of a triangle
writes the same slice and viewport, as Metal requires; nothing in the function's structure shows
it.
Qualified on the M3 Max (job m3-max-70249, macOS 27.0.1, output c140c91e): every pixel holds the
index its triangle read, all four triangles drawn.