CLI: show the active D3D12 adapter and hardware requirements #146
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/146"
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?
Imported from Zettrox/ztrx. Originally posted by syrrath-creator on 2026-11-25T14:22:37Z.
Add
victory gpu-infoso 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.
VICTORY_D3D12_WARP=1identified Microsoft WARP. WARP reported SM 6.6 and mesh support, and the hardware check correctly returned exit 1.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.
Imported from Zettrox/ztrx. Originally posted by azimaus970 on 2026-11-25T14:43:58Z.
Tested
gpu-infoat5b9a7bbon Windows build26300.9974with NVIDIA driver32.0.16.2140. The release build succeeded, andgpu-infocorrectly 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 code0. No game files were used.Imported from Zettrox/ztrx. Originally posted by Artking175 on 2026-11-25T15:01:26Z.
Independent
gpu-infoA/B on Windows 10 22H2 (19045), RTX 2060, driver 531.41, Rust 1.98.1 MSVC. I built5b9a7bbwithcargo build --locked -p victory, then built the same CLI with the app-local Agility support from #21 (9e3ceec) and SDK 1.608.2.10Both 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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.