Opt victory.exe into the D3D12 Agility SDK for Windows 10 #1517
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1518"
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 Marvisak/VIctory. Originally posted by mauri9911 on 2026-11-24T18:42:38Z.
Problem
On Windows 10 the game opens and the menus run at 30 fps, but anything translated draws black. The log shows, for every host pipeline:
Flags
0xC00areCBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandSAMPLER_HEAP_DIRECTLY_INDEXED(SM 6.6). The D3D12 runtime that ships inside Windows 10 predates them, so all draws are dropped (drawn=0). The host also reports only SM 6.5 for the GPU, and thevalu_tests/waterfall_teststhat need an SM 6.6 device fail with "neither hardware nor WARP SM 6.6 device available".Change
victory.exeexportsD3D12SDKVersionandD3D12SDKPath(thebuild.rsadds the two/EXPORTlink args). That is the documented way to opt into the D3D12 Agility SDK: the runtime then loadsD3D12\D3D12Core.dllfrom next to the executable.Microsoft.Direct3D.D3D121.619.x).I first tried
ID3D12SDKConfiguration::SetSDKVersionat runtime; it fails withDXGI_ERROR_INVALID_CALLon Windows 10 19044 for every path/version I tried, so the exports are the way that works there.Testing
Only on one machine: Windows 10 IoT LTSC 21H2 (19044), RTX 5060 Ti, Agility SDK 1.619.6.
drawn=0, constantroot signature flags c01warnings.drawn=2481draws per frame in the same stage, intro and loading art render.cargo clippy --workspace --all-targets --locked -- -D warningspasses, also with--all-features.Not covered: the unit tests that create a GPU device still do not use the Agility SDK (only
victory.exeexports the symbols), so those 15 tests still fail on Windows 10. I have not tested Windows 11 or an AMD GPU.With this the title gets further on an NVIDIA GPU, but rendering is still incomplete (many shaders do not translate yet) and the GPU can still time out, as the README already warns.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by EduBertozzi on 2026-11-24T18:43:05Z.
For whoever reviews this: the same fix already has open PRs. #175 uses the same approach (exe exports plus
cargo xtask agility), #463 does it conditionally, #968 combines it with other changes, and #969 uses a different mechanism (ID3D12SDKConfiguration1::CreateDeviceFactory, no exe exports).Two of them are tested on Windows 10 19045 with a GTX 1060:
VICTORY_D3D12_AGILITY, the shader and GPU suites pass, 123 + 50, where without it they fail for lack of SM 6.6 (comment).Merging one of them makes the others conflict, so it may help to compare against those before picking one.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by mauri9911 on 2026-11-24T18:52:08Z.
Closing as a duplicate of #969 (same fix through ID3D12SDKConfiguration1::CreateDeviceFactory). I tested #969 on Windows 10 build 19044 without KB5029331 with an RTX 5060 Ti and posted the results there: https://github.com/Marvisak/VIctory/pull/969#issuecomment-7141191027
upstream-sync referenced this pull request2026-11-25 11:05:17 +00:00
Pull request closed