Skip to content

Run on the Agility SDK's Direct3D 12 runtime when it is next to the exe - #1

Open
CocoBeans64 wants to merge 2 commits into
mainfrom
agility-sdk-win10
Open

CocoBeans64 wants to merge 2 commits into
mainfrom
agility-sdk-win10

Conversation

@CocoBeans64

Copy link
Copy Markdown
Owner

Why

On Windows 10 the system Direct3D 12 runtime caps the shader model below what the title's pipelines need (SM 6.6, heap-indexed root signatures):

  • RX 6800 XT, Windows 10 22H2 (19045): the device supports SM 0x65 only
  • WARP of the same system: the device supports SM 0x62 only

Nothing is drawn (drawn=0, every pipeline refused with root signature flags c01).

What

victory.exe exports D3D12SDKVersion (614) and D3D12SDKPath (.\D3D12\) through apps/victory/build.rs (/EXPORT:…,DATA, MSVC only). A D3D12Core.dll from the user's own download of Microsoft.Direct3D.D3D12 1.614.x placed in D3D12\ next to the executable replaces the system runtime. Without it, or on a system whose runtime is newer, the system runtime is used as before. No Microsoft binary is added to the repository (target\ is ignored).

Tested

  • On an older base (ffe310e), Windows 10 19045 with Agility 1.614.1 and WARP 1.0.22: no root signature refused, 0 draws dropped, menus at 15 fps on WARP.
  • On this base: cargo fmt --check and cargo xtask policy pass on Linux; the Windows build, clippy and tests are what this pull request's CI checks.

Generated by Claude Code

victory.exe exports D3D12SDKVersion (614) and D3D12SDKPath (.\D3D12\),
so a D3D12Core.dll the user puts there replaces a system runtime whose
shader model is too low (Windows 10: SM 6.5 on hardware, 6.2 on WARP).
Without it, the system's runtime is used as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GGm9fCf2Phoiu3hDZPYKiv
The host device logs its highest shader model; below 6.6 it is an error
that says nothing will be drawn and points to the Agility SDK's runtime.
The README's new Windows 10 section says where to get it and put it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GGm9fCf2Phoiu3hDZPYKiv
@CocoBeans64 CocoBeans64 reopened this Nov 25, 2026
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.

2 participants