Files
metal2vulkan/tests
Anees Iqbal 1a7920a8e1 Read the coverage a fragment is handed
`[[sample_mask]]` on an argument is the coverage the rasterizer produced for
this fragment; AIR spells it `air.sample_mask_in` to tell it apart from the
return member of the same name. It had no lowering, so a shader that intersects
its own mask with the incoming one read zero coverage and intersected everything
away.

SPIR-V uses one builtin in two storage classes, so a shader that declares both
directions produces two `SampleMask` variables -- an Input read through element
zero and an Output written through it. `LoadVarComponent` already loads a
composite and extracts a component, which is the same shape for a `uint[1]`
array as for a builtin vector.

A gated-off argument stays absent: declaring its builtin would put a variable in
the entry point interface for a value the shader cannot read. That is 13 corpus
modules, and with the gate no module's SPIR-V changes by a byte.
2026-09-01 03:09:00 +03:00
..
2026-07-22 13:15:24 +03:00