Skip to content

Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 - #402

Open
domints wants to merge 11 commits into
fxceless:mainfrom
domints:windows-10-fix
Open

domints wants to merge 11 commits into
fxceless:mainfrom
domints:windows-10-fix

Conversation

@domints

@domints domints commented Nov 25, 2026 •

Copy link
Copy Markdown

Windows 10's in-box D3D12 stops at shader model 6.5 and refuses root signatures with the directly indexed heap flags (c01), so every translated pipeline was refused and nothing drew (#84).

victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12), and cargo xtask agility fetches Microsoft.Direct3D.D3D12 1.620.2 from nuget.org, checks its published SHA-512, and puts D3D12Core.dll and d3d12SDKLayers.dll in target<profile>\D3D12. The DLLs never enter the repository. Windows 11, or a missing folder, keeps the in-box runtime.

victory config reports whether the runtime is in place, and the SM 6.5 error names the command.

This PR is just an extraction of single relevant commit from #22 which grows in more and more unrelated commits

kykifox1337-source and others added 2 commits November 23, 2026 20:23
Windows 10's in-box D3D12 stops at shader model 6.5 and refuses root
signatures with the directly indexed heap flags (c01), so every
translated pipeline was refused and nothing drew (fxceless#84).

victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath
(.\D3D12\), and `cargo xtask agility` fetches Microsoft.Direct3D.D3D12
1.620.2 from nuget.org, checks its published SHA-512, and puts
D3D12Core.dll and d3d12SDKLayers.dll in target\<profile>\D3D12\. The
DLLs never enter the repository. Windows 11, or a missing folder, keeps
the in-box runtime.

`victory config` reports whether the runtime is in place, and the SM 6.5
error names the command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HAL9000RELOADED

Copy link
Copy Markdown

Tested on Windows 10, where this matters, with an AMD card.

Setup: Windows 10 Pro 22H2 (19045), Radeon RX 7900 XTX (RDNA3), Adrenalin 32.0.32015.7029, Rust 1.98.1, DXIL validator and PC dxc from SDK 10.0.26100.

Results

  • Before cargo xtask agility: victory-shader gives 192 passed and 23 failed. The failures are the GPU tests with "no SM 6.6 device available", the in-box behaviour, so nothing changes without the runtime. Its test executable then exports nothing (checked with dumpbin /exports).
  • cargo xtask agility: it downloaded 1.620.2 and placed it in target\{debug,release,diag}\D3D12\.
  • After it, the whole workspace: 566 passed, 1 failed. Every victory-shader GPU test ran on the hardware device; there is no "no SM 6.6 hardware device" line.

Two notes

  1. victory-gpu's tests get no exports, so they stay on the in-box runtime.
  2. victory.exe exports unconditionally (dumpbin shows both symbols). With the exports and no D3D12\D3D12Core.dll beside the executable, D3D12CreateDevice fails with 0x887E0003 (D3D12_ERROR_INVALID_REDIST) on this Windows 10. I checked that with a standalone probe. So a victory.exe built without cargo xtask agility would have no host device. This is the same note as on Windows 10: the D3D12 Agility SDK runtime for shader model 6.6 (upstream #362) #69.

The runs behind this, with the three fixes that make victory-gpu's tests pass on Windows 10 (#875, #849, #692): #850 (comment)

@domints

domints commented Nov 25, 2026

Copy link
Copy Markdown
Author

@HAL9000RELOADED as far as I understand, Note 2 is irrelevant - it doesn't change behaviour on Windows 11, because this D3D12Core.dll in correct version is available in the OS by default, and also the whole point of this Agility fix is that Windows 10 has outdated version and it REQUIRES new version downloaded from NuGet so obviously it won't run without those DLLs downloaded.

@domints

domints commented Nov 25, 2026

Copy link
Copy Markdown
Author

@HAL9000RELOADED Added the fix to gpu crate, also revalidated note 2, and added the condition to symbol export. Tested on my Windows 10, works properly.

@HAL9000RELOADED

Copy link
Copy Markdown

Re-tested the new head fb5da17 on Windows 10 22H2 (19045) with an RX 7900 XTX (plus the stack-headroom test fix from Marvisak/VIctory#742). No game data used.

Both notes are covered here. Thanks for picking them up, @domints, and for fixing them so quickly.

zm0kiemedia pushed a commit to zm0kiemedia/Neptune_VI that referenced this pull request Nov 25, 2026
…omints); asset policy allows the README banner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants