Windows 10: the D3D12 Agility SDK runtime for victory.exe and the shader tests #420
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!420
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-420"
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?
@GamingRipperDoc on GitHub · 2026-11-25 00:36 UTC · original
GamingRipperDoc:win10-agility→main· +469 −3 · 12 files · 2 commits · closed without mergingWindows 10 support: the D3D12 Agility SDK runtime for
victory.exeand for thevictory-shadertest executables. Ported from the upstream PRs Marvisak/VIctory#175 (by @kykifox1337-source) and Marvisak/VIctory#362.Why
Windows 10's in-box D3D12 stops at shader model 6.5 and refuses the root signatures every translated pipeline uses (directly indexed heaps, flags
0x400/0x800). Without a newer runtime, nothing draws on Windows 10 and the title crashes during init (upstream Marvisak/VIctory#348, a duplicate of Marvisak/VIctory#84). This tree has none of the upstream Agility work.What
Two commits, authorship kept:
4463b39(Marvisak/VIctory#175):victory.exeexportsD3D12SDKVersion = 620/D3D12SDKPath = ".\D3D12\";cargo xtask agilityfetchesMicrosoft.Direct3D.D3D121.620.2 from nuget.org, checks its SHA-512, and unpacksD3D12Core.dll/d3d12SDKLayers.dllintotarget\<profile>\D3D12\(never into the repository);victory configreports the runtime. Port changes:miniz_oxideis declared inxtask/Cargo.tomlitself, since this workspace uses zlib-rs and doesn't list it, andshow_configkeeps thedata_dirline above the new lines.ff6649a(Marvisak/VIctory#362): thevictory-shadertest executables get the same exports (path..\D3D12\, since they live indeps\), only whenD3D12Core.dllis staged; without it they behave exactly as before.cargo xtask agilitytouchescrates/victory-shader/build.rsso the next build picks it up. Port change:lib.rskeeps this tree'sbvhmodule next to the test-onlyagilityone.Note: D3D12 does not fall back to the in-box runtime when the executable names a newer one that is missing (
D3D12_ERROR_INVALID_REDIST), so on any machine, Windows 11 included,victory.exefrom this branch needscargo xtask agilityonce. The test executables don't (their exports are conditional).Tested
Windows 10 22H2 (19045.7846), AMD RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X, Rust 1.98.1, on
main31714de:cargo xtask agilitycargo test -p victory-shader --libno SM 6.6 device)victory configd3d12 sdk : not beside the executable …d3d12 sdk : …\target\diag\D3D12\D3D12Core.dll (version 620)victory run, 60 s, no inputcargo test -p xtask: 6 passed.cargo clippy --workspace --all-targets --locked [--all-features] -- -D warnings: clean.cargo xtask policy: ok.No game data used.
AI-assisted (Claude Code); I ran everything above on my machine.
System Initand presents 100% black frames with 3 draws/frame #950github-bot referenced this pull request2026-11-26 04:01:57 +00:00
@GamingRipperDoc on GitHub · 2026-11-25 04:10 UTC · original
Yes, functionally. #69 came first and carries the same two upstream PRs (Marvisak/VIctory#175 and #362).
apps/victory/build.rs,apps/victory/src/agility.rs,crates/victory-shader/build.rsandxtask/src/agility.rsare byte-identical between the two.The one material difference is the manifest. Since #69 was branched,
mainreplacedminiz_oxidewithzlib-rsin[workspace.dependencies](3bff182). #69'sxtask/Cargo.tomlstill saysminiz_oxide.workspace = true. Merged onto currentmain(no text conflict), the workspace no longer loads:This PR declares
miniz_oxide = "0.9.1"(andsha2) inxtask/Cargo.tomlitself, so it builds on currentmain.I'm happy to close this in favour of #69 once its manifest is updated. In that case my RX 9070 XT / Windows 10 results in the description can count as an extra data point for #69.
AI-assisted (Claude Code).
@domints on GitHub · 2026-11-25 10:03 UTC · original
@GamingRipperDoc This PR won't build on current main exactly because of you using
miniz_oxide, current main has nominiz_oxideanymore, and for at least 12 hours for that matter.#69 on the other hand, adds unnecessary
miniz_oxideback to the root Cargo.toml leaving app with two zip unpacking packages.I suggest closing both in favor of #402 which is minimal change, resolves conflicts and uses
zlib-rsinstead of just re-pullingminiz_oxide.System Initand presents 100% black frames with 3 draws/frame #950@GamingRipperDoc on GitHub · 2026-11-26 06:29 UTC · original
Closing this in favor of #402, as @domints suggested: it does the same thing (Agility SDK runtime for SM 6.6 on Windows 10), merges cleanly on current
main, and unpacks withzlib-rsinstead of bringingminiz_oxideback. This branch no longer builds onmainbecauseminiz_oxideis gone.My Windows 10 22H2 + RX 9070 XT results from this PR still apply to the approach. I'll check #402 on the same machine and report there.
No game data in this comment.
AI-assisted (Claude Code).
Pull request closed