fix(water): guard fog/LDS races, OOB masks, NIS NaN, and copyback barriers #519
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!519
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-519"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ZerefDragnee1l on GitHub · 2026-12-06 01:48 UTC · original
ZerefDragnee1l:fix/water-black-squares-shaders-and-barriers→main· +148 −107 · 8 files · 1 commits · openSplits the water black-squares shader and barrier fixes out of #408 onto current
main(companion to #457, which carries thelarp-shaderlds_meetings/idle_lds_readschanges).Summary
6871d6e4b3ac9a10,a10179ab7eda0dc3,926c46bab3b86bd6): Guardlog2inputs against<= 0, preventWaveActive*NaN lane contamination, validate cluster/slice bounds, and fix LDS min/max reduction synchronization.07fb4c723c4241ed,d3c330847c597f3c): Clamp coordinates and dimensions before mask updates to avoid out-of-bounds UAV/texture writes.crates/larp-gpu/src/nis/NIS_Scaler.h): Clamp luminance dot product beforesqrt()to eliminate NaN propagation.crates/larp-gpu/src/barriers.rs,crates/larp-gpu/src/copyback.rs): Add missingLAYOUT_DIRECT_UNORDERED_ACCESS/SHADER_RESOURCEtransitions andCOMMONcopyback global sync barrier.Related: #457
Verification
git diff --check-> cleancargo check -p larp-> exited 0 (larp-gpuandlarpbuild.rsDXC compilation succeeded with 0 errors and 0 new warnings).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.