`air.location_index` always carries TWO operands: the resource's Metal slot and
how many descriptors the argument occupies there. Nothing read the second one.
An `array<sampler, 8>` therefore bound as a single sampler. Its element loads
then resolved to nothing, so the sample fell back to the synthesized read
sampler -- the shader's chosen filter, address modes and compare function
dropped without trace, in a module that validates, binds and reflects as though
one sampler at that slot were the whole story. There is no sampler
descriptor-array lowering, so this is now a FALLBACK naming the parameter and
the count. Two of 14579 local corpus sources declare one.
The same count is what makes the texture-array length checkable. AIR states that
length twice -- as this operand and inside `array<texture..., N>` -- and all 76
corpus declarations agree, so a name the ABI contradicts, or a count above one
on a name that is not an array at all, is refused rather than silently sized
from the name alone. It costs nothing today and fails the moment the parse
drifts.
Reading the pair also has to be POSITIONAL. Either operand may be a literal or a
pointer to a function-constant global, and all four combinations occur -- 112946
`(i32, i32)`, 3404 `(ptr, i32)`, 1447 `(ptr, ptr)`, 439 `(i32, ptr)`, and no
other shape. The slot decode looked for the first global after the marker, which
IS the count whenever the slot is a literal: a texture at `[[texture(1)]]` with a
function-constant array extent could bind at the extent's value. 69 corpus
texture nodes are that shape. The buffer half of it was already dodged by a
type-name special case for `array_ref<void>` -- whose comment describes exactly
this confusion -- and the positional read makes that case unnecessary, so it is
gone. Latent today: no corpus module resolves the count global.
Full-corpus A/B over all 14579 sources: 0 status changes. The two sampler-array
sources already fell back for unrelated reasons, so the hole is pinned by an
authored fixture instead, which translates cleanly at HEAD~ and refuses here.
Both new must-FALLBACK cases carry their positive control, so the boundary is
what is pinned rather than one side of it.