Scrub NaN on typed buffer stores too (VICTORY_NAN_SCRUB) #15
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/trustno1-coder--VIctory-NVIDIA!15
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-15"
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?
@Tissma95 on GitHub · 2026-11-27 03:22 UTC · original
Tissma95:nan-scrub-typed-stores→main· +26 −1 · 1 files · 1 commits · closed without mergingWith
VICTORY_NAN_SCRUB=1(the launcher's default), the colours a pixel shader exports and float image stores already get NaN and infinities set to 0. Typed buffer stores of floats did not. A NaN that a compute pass writes through a typed buffer view could still reach the blur, the exposure and the history of the temporal upscaler.Change (
crates/victory-shader/src/emit/lower.rs, +26/−1):scrub_nan).integer_view) say the view is not of an integer format.VICTORY_NAN_SCRUBis already part of the shader cache key. The translator change itself renews the cache.Why: this follows the NaN guard in codec-d/cool_fox (after Neptune-VE). That guard covers typed buffer stores as well as colour exports and image stores, and with it the blotched, painted-looking walls and skin were reported gone there. The README of this fork lists a posterized "oil paint" look that appears in some runs. On an RTX 3060 Ti (Series S, 720p), I saw a pastel look and some inverted colours.
Tested:
cargo test -p victory-shader --libpasses (203 passed, 2 ignored).🤖 Generated with Claude Code
https://claude.ai/code/session_01EPTFUmv7kwA2Jtjutdp8Sh
@Tissma95 on GitHub · 2026-11-27 03:56 UTC · original
Follow-up: on a later run the pastel look and the wrong vegetation colours came back with the same build and VICTORY_NAN_SCRUB=1, so the improvement I saw may have been a good run rather than this change. It is still correct as a scrub of typed stores, but I can't claim it fixes the oil-paint look.
Pull request closed