upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/lua-modding.md
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-26 23:50:35 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 00:00:18 -0500
commitf0c290f11f419bb0fd34908988ac4ba42e1b7941 (patch)
treee3a25969bec5de94ba23837ec908bf8deb581c91 /docs/lua-modding.md
parentca4c6a73f04674364734d7caf70f44645a9adc32 (diff)
NaN scrub: LEONIDA_NAN_SCRUB=2 scrubs every image store as a float, as 1 did
Since the scrub keeps 32 bits that may be an integer's, an image store of a value no float instruction made directly loses only five bit patterns. Translating the title's archive with LEONIDA_NAN_SCRUB=1, that is the form 2,407 programs now emit (1,907 compute, 500 pixel): most stores write values that come through a join, a select or a guarded write. What they no longer catch is a NaN with other bits (one negated last, or copied from data), which no test here can rule out for the title. LEONIDA_NAN_SCRUB=2 keeps the old form (every NaN and infinity in every float-typed image store) for a run that tells the two apart. 1 is unchanged from the commit before; the switch is already in the shader cache's key. The comment that said a tile's mask was left empty now says what was measured: all-ones made 0. Checked: size_tests' test also stores all-ones to an R32_UINT image with mode 2 and reads 0 (host GPU and WARP); cargo check --profile diag -p leonida --features diagnostics. Not run in the game. AI-assisted. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/lua-modding.md')
0 files changed, 0 insertions, 0 deletions