Files
6gbvram---16gb-ram/crates
9hvn9yt2vk-netizen 0f198bf66b shader: look up an input channel without underflowing
find_input matched each input element with
`(row and channel in the element).then_some((id, channel - e.col))`.
then_some evaluates its argument first, so the subtraction ran for every
element, also those whose first channel is past the one asked for. In a
build with overflow checks (tests, debug runs) a pixel shader reading a
channel below any element that starts at z or w panicked, whichever row
that element was in, and packed inputs such as a float2 in .zw are
common. Release builds wrapped and threw the value away.

then() computes it only when the element holds the channel.

Found with a random-input harness over pixel, vertex and mesh programs
with matching signatures. The new test panics without the fix.
2026-11-24 00:57:59 +01:00
..
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00