Metal draws every setLineWidth: width below 1/16 (0, negative widths and
NaN among them) exactly as 1/16: the parallelogram reaching 1/32 pixel
each side of the segment along its minor axis, after snapping the
endpoints to 1/256 pixel. The band drew w' = 0 at a half width of
2^-subPixelPrecisionBits (1/256 on MoltenVK), which lights only the
centres the segment passes within 1/256 of: right where the endpoints
are on pixel centres, as every earlier probe case had them, and short of
Metal's pixels anywhere else (a consumer's scattered draw lit 3 and 5
pixels on Metal and none on the runtime).
The runtime's route now pushes the band's half width as w'.max(1/16)/2,
so width 0 draws as the band of 1/16 does. Width 0 keeps its route (the
band; the device's lines never draw it), and every other width is
unchanged. The translator's band is unchanged but for its docs.
Docs: line_width.rs and band.rs state Metal's rule (snapping to 1/256,
a half rounded up; width 0 as 1/16) in place of "the centres on the
segment"; the runtime README and set_line_width say "at 0 as at 1/16".
RUNTIME_VERSION 1714 (a width-0 draw lights other pixels); the
runtime-sources pin recomputed.
Verified: runtime_lane::line_widths on MoltenVK (Apple M3 Max, macOS
27.0.1), both policies: 117 cases, 115 match Metal pixel for pixel and 2
refused as documented (triangle edges), 61 draws by the band; the 11
width-0 maps that differed at the parent now match (offset rows and
columns 256 pixels, scattered lists 31, the strip 33, the clip-space
list and strip 3 and 5). Runtime line_width unit tests (the band's half
at 0 is 1/32), tests::engine_line_band, golden_hashes_match_the_table,
the engine inventory parts, tests::fast_paths and the runtime-sources
guard pass; clippy clean on all features and on --cfg m2v_gpu.
(Carried to development from steelbrain/reims-graphics-kext 9ada26c9fa.)