An owned MSL source: the vertex function rt6_per_primitive reads one index per triangle from a
device buffer at vertex_id / 3 and writes its low byte as [[render_target_array_index]], the rest
as [[viewport_array_index]], and the index as a flat varying, so every vertex of a triangle writes
the same slice and viewport, as Metal requires, though nothing in its structure shows it. The
fragment function rt6_per_primitive_read reads all three. Its companions follow from
scripts/regen-air-fixtures on the M3.