Skip to content

r2: extract emit_recomb helper, rewire 7 sites (O-variant preserved) - #29

Merged
abgnydn merged 2 commits into
mainfrom
fix/r2-recomb-dedup
Sep 5, 2026
Merged

abgnydn merged 2 commits into
mainfrom
fix/r2-recomb-dedup

Conversation

@abgnydn

@abgnydn abgnydn commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Phase 2 of WGSL_REFACTOR_PARITY_PROTOCOL.md: the 7 copy-pasted H2O+ recombination branches become one helpers.wgsl emit_recomb() (draw-order identical, bool return; callers keep site-specific no-recomb paths). O-branch asymmetry preserved via emit_o flag (ionization + all secondary sites emit O code 4; primary excitation emits 2H only) — surfaced, not unified. Proton needed bindings 8/9 (rad_e/rad_dep) or smoke's proton bundle breaks — 5 lines, no behavior. Net -181 lines. Proof: --hardware exit 0, all 21 fields run1==run2 AND all 13 recorded fields equal the pre-change baseline (25256e84/81c43d00) across separate browser launches. Artifact R2-recomb-dedup.json records new shaderHashes + standard envelope. npm run check green (17/88).

@abgnydn
abgnydn merged commit ffcd290 into main Sep 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant