CLI: recommend a DXIL validator in translate --help #1993

Open
AlanQiang0418 wants to merge 2 commits from upstream-pr/1995 into main
AlanQiang0418 commented 2026-11-25 02:34:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AlanQiang0418 on 2026-11-25T02:34:53Z.


Addresses the third request in #1945. The existing help names the override but leaves the reader to choose a DLL. victory translate --help now points to bin\x64\dxil.dll from a Microsoft DXC v1.8.2502 or newer release and explains why validators before 1.8, including standalone DXC builds, may reject shaders with repeated semantic names. The short help still lists the override and SDK fallback.

The DXC v1.8.2502 release notes document the PSV0 string and semantic-index table ordering fix. #1974 tracks the separate runtime version report and warning.

Verified on Windows by running both victory translate --help and victory translate -h. A translate --validate smoke test loaded the x64 DLL selected by VICTORY_DXIL; the input contained no shaders. cargo clippy --locked --offline -p victory --all-targets -- -D warnings passed.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5484057935 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995). Originally posted by [AlanQiang0418](https://github.com/AlanQiang0418) on 2026-11-25T02:34:53Z. --- Addresses the third request in #1945. The existing help names the override but leaves the reader to choose a DLL. `victory translate --help` now points to `bin\x64\dxil.dll` from a Microsoft DXC v1.8.2502 or newer release and explains why validators before 1.8, including standalone DXC builds, may reject shaders with repeated semantic names. The short help still lists the override and SDK fallback. The [DXC v1.8.2502 release notes](https://github.com/microsoft/DirectXShaderCompiler/releases/tag/v1.8.2502) document the PSV0 string and semantic-index table ordering fix. #1974 tracks the separate runtime version report and warning. Verified on Windows by running both `victory translate --help` and `victory translate -h`. A `translate --validate` smoke test loaded the x64 DLL selected by `VICTORY_DXIL`; the input contained no shaders. `cargo clippy --locked --offline -p victory --all-targets -- -D warnings` passed.
catminou4 commented 2026-11-25 02:48:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:48:50Z.

Review: COMMENTED


Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff.

CLI: recommend a DXIL validator in translate --help — UX hint; overlaps with #1974/#2002 on the same help text.

<!-- greyfinch-sync:Marvisak/VIctory:review:6051088975 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#pullrequestreview-6051088975). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T02:48:50Z. **Review:** COMMENTED --- Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff. CLI: recommend a DXIL validator in translate --help — UX hint; overlaps with #1974/#2002 on the same help text.
DesertGamer commented 2026-11-25 03:03:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-25T02:40:53Z.


VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7151038640 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#issuecomment-7151038640). Originally posted by [DesertGamer](https://github.com/DesertGamer) on 2026-11-25T02:40:53Z. --- ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Marvisak commented 2026-11-25 10:07:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:16:15Z.


Automated triage for the maintainers.

Merge candidate.

Help-text only change in apps/victory/src/main.rs (Command::Translate, --validate): the long help now recommends pointing VICTORY_DXIL at a DXC 1.8.2502+ bin\x64\dxil.dll and says why older SDK validators can reject shaders with repeated semantic names. This matches the lookup in emit/validator.rs::default_path() (newest Windows SDK copy otherwise) and the third request in #1945; no behaviour changes.

#2002 makes the same help change, but states that --validate already prints the DLL version and warns since #1974, which is not in main yet; this PR's wording is accurate for main as it stands. Recommending a look, not approving.

CI: passing (check).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158103840 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#issuecomment-7158103840). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T09:16:15Z. --- <!-- victory-triage v1 head=d83bee07c4a627d9f3f7721571aaf09873d276e4 verdict=merge-candidate at=2026-11-25T09:16:03Z --> Automated triage for the maintainers. **Merge candidate.** Help-text only change in `apps/victory/src/main.rs` (`Command::Translate`, `--validate`): the long help now recommends pointing `VICTORY_DXIL` at a DXC 1.8.2502+ `bin\x64\dxil.dll` and says why older SDK validators can reject shaders with repeated semantic names. This matches the lookup in `emit/validator.rs::default_path()` (newest Windows SDK copy otherwise) and the third request in #1945; no behaviour changes. #2002 makes the same help change, but states that `--validate` already prints the DLL version and warns since #1974, which is not in `main` yet; this PR's wording is accurate for `main` as it stands. Recommending a look, not approving. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
cloph-dsp commented 2026-11-25 13:02:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T12:13:50Z.


Independent local validation (Windows, Rust 1.100.0/MSVC, head d83bee0, no game data): cargo test --locked -p victory --bins -> 10 tests passed, exit 0. cargo run --locked -q -p victory -- translate --help on this PR prints the expanded DXC-validator hint ('Check emitted DXIL with the validator from VICTORY_DXIL or the newest Windows SDK. Set VICTORY_DXIL to the full path to bin\x64\dxil.dll from Microsoft DXC v1.8.2502 or newer. Older SDK validators can reject shaders with repeated semantic names.'); main 940d32f prints only the short --validate ... VICTORY_DXIL ... newest Windows SDK's option text, so the new text is confirmed to come from this PR. Help-text change only; no runtime DXIL validation exercised. AI-assisted (Hy4 flash). GPU/driver: N/A (docs/CLI text). No game data, assets or extracted content used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162092087 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#issuecomment-7162092087). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T12:13:50Z. --- Independent local validation (Windows, Rust 1.100.0/MSVC, head d83bee0, no game data): `cargo test --locked -p victory --bins` -> 10 tests passed, exit 0. `cargo run --locked -q -p victory -- translate --help` on this PR prints the expanded DXC-validator hint ('Check emitted DXIL with the validator from VICTORY_DXIL or the newest Windows SDK. Set VICTORY_DXIL to the full path to bin\x64\dxil.dll from Microsoft DXC v1.8.2502 or newer. Older SDK validators can reject shaders with repeated semantic names.'); main 940d32f prints only the short `--validate ... VICTORY_DXIL ... newest Windows SDK's` option text, so the new text is confirmed to come from this PR. Help-text change only; no runtime DXIL validation exercised. AI-assisted (Hy4 flash). GPU/driver: N/A (docs/CLI text). No game data, assets or extracted content used.
fiestorra commented 2026-11-26 13:04:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-26T12:39:24Z.


A wording suggestion for this line, measured in #1974: "older SDK validators" could read "validators before 1.8, including standalone DXC builds". The PSV0 failure this warns about reproduces with DXC 1.7 and 1.6 on their own, not only with the copy the SDK ships, and a reader who installed a standalone DXC earlier than 1.8 gets the wrong verdicts from a path that is not the SDK's.

Nothing else from me: this is the text I would have kept over #2002, which I have closed.

Written with an AI assistant.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7192286961 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#issuecomment-7192286961). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-26T12:39:24Z. --- A wording suggestion for this line, measured in #1974: "older SDK validators" could read **"validators before 1.8, including standalone DXC builds"**. The PSV0 failure this warns about reproduces with DXC 1.7 and 1.6 on their own, not only with the copy the SDK ships, and a reader who installed a standalone DXC earlier than 1.8 gets the wrong verdicts from a path that is not the SDK's. Nothing else from me: this is the text I would have kept over #2002, which I have closed. Written with an AI assistant.
fuzeofficlal commented 2026-11-26 21:16:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T21:16:19Z.

Review: APPROVED


LGTM — verified against origin/main (63bcca43) on Windows x64.

  • Updating the translate --validate help text in apps/victory/src/main.rs:82-86 clearly documents pointing VICTORY_DXIL to bin\x64\dxil.dll from DXC v1.8.2502 or newer and explains why older SDK validators reject shaders with repeated semantic names.
  • Checks:
    • cargo run --locked -p victory -- translate --help: builds cleanly and renders the updated --validate help text.
    • cargo clippy -p victory --all-targets --locked -- -D warnings (default and --all-features): clean.
    • cargo xtask policy: 191 files ok; rustfmt --edition 2024: clean.
<!-- greyfinch-sync:Marvisak/VIctory:review:6080549419 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1995#pullrequestreview-6080549419). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T21:16:19Z. **Review:** APPROVED --- LGTM — verified against `origin/main` (`63bcca43`) on Windows x64. - Updating the `translate --validate` help text in `apps/victory/src/main.rs:82-86` clearly documents pointing `VICTORY_DXIL` to `bin\x64\dxil.dll` from DXC v1.8.2502 or newer and explains why older SDK validators reject shaders with repeated semantic names. - **Checks**: - `cargo run --locked -p victory -- translate --help`: builds cleanly and renders the updated `--validate` help text. - `cargo clippy -p victory --all-targets --locked -- -D warnings` (default and `--all-features`): clean. - `cargo xtask policy`: 191 files ok; `rustfmt --edition 2024`: clean.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1995:upstream-pr/1995'
git switch 'upstream-pr/1995'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1995'
git switch 'upstream-pr/1995'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1995'
git switch 'upstream-pr/1995'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1995'
git switch 'main'
git merge --squash 'upstream-pr/1995'
git switch 'main'
git merge --ff-only 'upstream-pr/1995'
git switch 'main'
git merge 'upstream-pr/1995'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1993
No description provided.