Skip to content

Windows 10 support: load the D3D12 Agility SDK runtime from a D3D12 folder - #26

Open
Schrubbdiwupp wants to merge 1 commit into
readmet3xt-lab:mainfrom
Schrubbdiwupp:windows10-agility-sdk
Open

Schrubbdiwupp wants to merge 1 commit into
readmet3xt-lab:mainfrom
Schrubbdiwupp:windows10-agility-sdk

Conversation

@Schrubbdiwupp

Copy link
Copy Markdown

On Windows 10, the built-in Direct3D 12 refuses the root signatures with directly indexed descriptor heaps (Shader Model 6.6) that every translated shader uses (Unsupported bit-flag set (root signature flags c00)), so foxhound stops at require_direct_heaps. This PR makes victory.exe export D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12\). With those exports, Direct3D 12 loads Microsoft's Agility SDK runtime from a D3D12 folder beside the exe. Windows 11 is unchanged.

  • apps/victory/src/agility.rs + build.rs: the two exports (/EXPORT:...,DATA)
  • scripts/get-d3d12.ps1: fetches D3D12Core.dll 1.620.2 from nuget.org and keeps it only if it is validly signed by Microsoft. Nothing of Microsoft's is committed (/agility/ is git-ignored).
  • build-launcher.ps1 -Package copies agility\D3D12 into the release folder
  • The Windows 10 error message and the README now say how to fix it

Tested: Windows 10 22H2 (19045), RTX 5070 Ti, Ryzen 7 5800X. The shaders translate, the ~83k pipelines compile, and the title runs. dumpbin /exports victory.exe lists both symbols. cargo xtask policy passes. Pre-existing fmt/clippy findings outside these files are untouched. The linker now prints "Creating library victory.lib" because the exe has exports; that is expected.

— Schrubbdiwupp & TARS 🐾

🤖 Generated with Claude Code

Windows 10's built-in Direct3D 12 refuses the root signatures with directly
indexed descriptor heaps (Shader Model 6.6) that every translated shader
uses, so the layer stopped at require_direct_heaps.

victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12\):
Direct3D 12 then loads Microsoft's Agility SDK runtime from a D3D12 folder
beside the exe. Windows 11 is unchanged.

- apps/victory/src/agility.rs, build.rs: the two exports (/EXPORT:...,DATA)
- scripts/get-d3d12.ps1: fetches D3D12Core.dll 1.620.2 from nuget.org,
  kept only when validly signed by Microsoft; /agility/ is git-ignored
- build-launcher.ps1 -Package copies agility\D3D12 into the release
- the Windows 10 error message and the README say how to fix it

Tested on Windows 10 22H2 (19045), RTX 5070 Ti: shaders translate, the
pipelines compile and the title runs.

By Schrubbdiwupp & TARS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant