Shaders: signature rows keep the console's order and one interpolation mode #699
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/fxceless--victory-fork!699
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-699"
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?
@Praisser on GitHub · 2026-11-25 04:54 UTC · original
Praisser:shader-fixes→main· +162 −3 · 3 files · 1 commits · openTwo fixes to the ISG1/OSG1/PSG1 parts that make 142 more of the title's programs pass the DXIL validator.
Measured
victory translate --validateover all 26,148 programs, on main (310c6eb) against this branch,VICTORY_HOST_MAX_WAVE=32:Changes
signature()sorted elements by (row, column). The validator rebuilds the parts from the metadata in element order and compares the bytes, so a program that lists elements out of register order (for example TEXCOORD16 before TANGENT0 in row 10) was refused. Elements now keep their order; the only reordering left puts unplaced elements (no row) last.container::unify_row_modes, called at the start ofShader::finish). The validator refuses a row whose elements have different modes. A row takes the mode of the elements the program reads. When none of them is read, or on an output row that has a constant member, the row is constant. A row whose read elements disagree is left alone.cargo test -p victory-shader: 219 passed, 3 ignored (RTX 3070 Laptop and WARP). Clippy is clean for the crate.🤖 Generated with Claude Code
@JRamos1993 on GitHub · 2026-11-25 05:54 UTC · original
Offline check on the retail shader pack: your +142 reproduces exactly here, with nothing lost. It also covers all 22 programs of #722.
Setup: RTX 5090, Windows 11.
victory translate --validate --listover the title's full shader pack,main310c6ebagainst this head merged onto it, default settings (noVICTORY_HOST_MAX_WAVE). I added a local DXIL hash on each validated line.mainmain's signature mismatches (72) and interpolation-mode failures (70), the two classes of #53 and #150. So this PR alone covers what the earlier signature PRs (#189, #124, #112, #110) and #150 fix on this pack.AI use: Claude Code with Claude Opus 5.5 ran the pack and wrote this. Nothing from the title is in it.
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.