Files
metal2vulkan/crates
Anees Iqbal 6a3f4ba5e8 Fixtures: rt6_per_primitive, a vertex function that reads its slice and viewport per triangle
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.
2026-11-23 00:13:34 -08:00
..