CLI: show the active D3D12 adapter and hardware requirements #146

Open
syrrath-creator wants to merge 1 commit from upstream-pr/146 into main
syrrath-creator commented 2026-11-25 15:08:42 +00:00 (Migrated from github.com)
First-time contributor

Imported from Zettrox/ztrx. Originally posted by syrrath-creator on 2026-11-25T14:22:37Z.


Add victory gpu-info so testers can check the renderer before launching a title. It needs no game files. The command uses the renderer's own D3D12 device and resolves its adapter by LUID, so a report from a multi-GPU machine identifies the adapter this executable actually selected.

The report checks feature level 12.0, shader model 6.6 and mesh shaders. It distinguishes software rendering from hardware and reports dedicated video memory separately from the current DXGI budget. Exit 0 means the hardware requirements were confirmed. Initialization errors retain the native HRESULT.

Verification used Windows 11, an RTX 4090 and NVIDIA driver 621.40.

  • The release build identified the RTX 4090 and passed all checks (exit 0).
  • A diagnostics build with VICTORY_D3D12_WARP=1 identified Microsoft WARP. WARP reported SM 6.6 and mesh support, and the hardware check correctly returned exit 1.
  • An isolated fault-injection build returned exit 1 and printed DXGI_ERROR_UNSUPPORTED's HRESULT (0x887A0004) with logging disabled.

The GPU crate passed its default and diagnostics test suites. Workspace Clippy passed with warnings denied in both configurations. Developed and tested with OpenAI Codex.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6606659897 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/146). Originally posted by [syrrath-creator](https://github.com/syrrath-creator) on 2026-11-25T14:22:37Z. --- Add `victory gpu-info` so testers can check the renderer before launching a title. It needs no game files. The command uses the renderer's own D3D12 device and resolves its adapter by LUID, so a report from a multi-GPU machine identifies the adapter this executable actually selected. The report checks feature level 12.0, shader model 6.6 and mesh shaders. It distinguishes software rendering from hardware and reports dedicated video memory separately from the current DXGI budget. Exit 0 means the hardware requirements were confirmed. Initialization errors retain the native HRESULT. Verification used Windows 11, an RTX 4090 and NVIDIA driver 621.40. - The release build identified the RTX 4090 and passed all checks (exit 0). - A diagnostics build with `VICTORY_D3D12_WARP=1` identified Microsoft WARP. WARP reported SM 6.6 and mesh support, and the hardware check correctly returned exit 1. - An isolated fault-injection build returned exit 1 and printed `DXGI_ERROR_UNSUPPORTED`'s HRESULT (`0x887A0004`) with logging disabled. The GPU crate passed its default and diagnostics test suites. Workspace Clippy passed with warnings denied in both configurations. Developed and tested with OpenAI Codex.
azimaus970 commented 2026-11-25 15:08:46 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by azimaus970 on 2026-11-25T14:43:58Z.


Tested gpu-info at 5b9a7bb on Windows build 26300.9974 with NVIDIA driver 32.0.16.2140. The release build succeeded, and gpu-info correctly selected my RTX 3060 Laptop GPU as a hardware adapter. D3D12 feature level 12.0, shader model 6.6, and mesh shader checks all passed. It reported 5,994 MiB dedicated VRAM and a 5,226 MiB DXGI local memory budget. Exit code 0. No game files were used.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7165728337 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/146#issuecomment-7165728337). Originally posted by [azimaus970](https://github.com/azimaus970) on 2026-11-25T14:43:58Z. --- Tested `gpu-info` at `5b9a7bb` on Windows build `26300.9974` with NVIDIA driver `32.0.16.2140`. The release build succeeded, and `gpu-info` correctly selected my RTX 3060 Laptop GPU as a hardware adapter. D3D12 feature level 12.0, shader model 6.6, and mesh shader checks all passed. It reported 5,994 MiB dedicated VRAM and a 5,226 MiB DXGI local memory budget. Exit code `0`. No game files were used.
Artking175 commented 2026-11-25 15:08:46 +00:00 (Migrated from github.com)
Author
First-time contributor

Imported from Zettrox/ztrx. Originally posted by Artking175 on 2026-11-25T15:01:26Z.


Independent gpu-info A/B on Windows 10 22H2 (19045), RTX 2060, driver 531.41, Rust 1.98.1 MSVC. I built 5b9a7bb with cargo build --locked -p victory, then built the same CLI with the app-local Agility support from #21 (9e3ceec) and SDK 1.608.2.

Runtime D3D12 FL 12.0 SM 6.6 Mesh shaders Exit
System D3D12 yes no yes 1
Agility SDK 1.608.2 yes yes yes 0

Both selected the same hardware adapter by LUID and reported 5,968 MiB dedicated VRAM and a 5,200 MiB DXGI local budget in these runs. The driver and Windows settings stayed the same. No game files were used.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7166181762 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/pull/146#issuecomment-7166181762). Originally posted by [Artking175](https://github.com/Artking175) on 2026-11-25T15:01:26Z. --- Independent `gpu-info` A/B on Windows 10 22H2 (19045), RTX 2060, driver 531.41, Rust 1.98.1 MSVC. I built `5b9a7bb` with `cargo build --locked -p victory`, then built the same CLI with the app-local Agility support from #21 (`9e3ceec`) and SDK 1.608.2. | Runtime | D3D12 FL 12.0 | SM 6.6 | Mesh shaders | Exit | | --- | --- | --- | --- | --- | | System D3D12 | yes | no | yes | `1` | | Agility SDK 1.608.2 | yes | yes | yes | `0` | Both selected the same hardware adapter by LUID and reported 5,968 MiB dedicated VRAM and a 5,200 MiB DXGI local budget in these runs. The driver and Windows settings stayed the same. No game files were used.
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/146:upstream-pr/146'
git switch 'upstream-pr/146'

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/146'
git switch 'upstream-pr/146'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/146'
git switch 'upstream-pr/146'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/146'
git switch 'main'
git merge --squash 'upstream-pr/146'
git switch 'main'
git merge --ff-only 'upstream-pr/146'
git switch 'main'
git merge 'upstream-pr/146'
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
Zettrox/ztrx!146
No description provided.