Files
metal2vulkan/tests
Anees Iqbal 74c0054375 Reject a builtin parameter the emitter cannot wire
`position`, `point_coord` and `front_facing` each declare a SPIR-V builtin of a
fixed shape, and a parameter of any other shape was bound to a zero. That put
every fragment of a mistyped `[[position]]` at the origin and called every
triangle of a mistyped `[[front_facing]]` back-facing -- in a module that
validated, bound the same descriptors and reflected as though the builtin were
connected.

The branch is unreachable on real AIR: Metal fixes each attribute's type, and
over 2880 corpus sources nothing changes by a byte. It rejects now so the silent
zero cannot come back.

One authored fixture declared `[[position]]` as a scalar `float` while testing
something else entirely; it now says `float4`, which is what AIR would say.
2026-09-01 03:00:44 +03:00
..
2026-07-22 13:15:24 +03:00