Repository navigation
Shaders: interpolation modes from the console container's PSV0 - #150
Open
wildheathen wants to merge 1 commit into
Open
wildheathen wants to merge 1 commit into
wildheathen wants to merge 1 commit into
Conversation
The modes of interpolated elements came from DXC's defaults by type
(float: linear, uint: constant), but the console's compiler may pack a
float and a uint element into one signature row, declaring both constant
in its PSV0. Mixed modes in one row are rejected by the validator
("interpolation mode that differs from another element packed into the
same row"). The modes are now read from the console container's PSV0,
keyed by row and column, falling back to the defaults without one.
Ported from Marvisak/VIctory#1208 (its interpolation-mode part and its
test), adapted to this fork's Psv (`geometry`).
JustDownTV
pushed a commit
to JustDownTV/victory-gta6
that referenced
this pull request
Nov 24, 2026
|
Reproduced the table on a second machine, and checked how this combines with #110 / #112 / #124 when merging.
Offline translation and validation only; no shader contents or extracted data included. AI-assisted (Claude Code); run on my machine. |
This was referenced Nov 25, 2026
RENOxDECEPTION
added a commit
to RENOxDECEPTION/victory-fork
that referenced
this pull request
Nov 25, 2026
# Conflicts: # crates/victory-shader/src/emit/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The interpolation modes of interpolated elements came from DXC's defaults by type: float linear, uint constant. But the console's compiler packs a float and a uint into one signature row and declares both constant in its PSV0. So the defaults mixed modes within one row, and
dxil.dllrefused the shader: "signature element … has interpolation mode that differs from another element packed into the same row". This reads the modes from the console container's PSV0, by row and column, and falls back to the defaults when there's no PSV0.It's the interpolation part of Marvisak/VIctory#1208 by @powplusplus, kept under their authorship, with its test. The only adaptation is the
geometryfield this fork added toPsv. #1208's other two parts are covered here already: the PSV0 string table by #61, the ISG1/OSG1 row order by #110 / #112.Measured
victory translate --validate --listovershaders.rpf, fork4e17478, dxil.dll 10.0.26100:4e174784e17478fails with this PR, alone or with Shader: fix DXIL signature ordering for packed semantics #112. The +61 are 31 pixel, 17 mesh and 13 vertex programs.Checks
cargo test -p victory-shader: 211 passed.console_psv_interpolation_modes_are_preserved_for_copacked_inputs(from #1208) fails on4e17478with mode 2, linear, where the console says 1, constant, and passes here.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: ok.cargo fmt --checkreports nothing inemit/mod.rs.