Windows 10: opt-in D3D12 Agility SDK for shader model 6.6 #467
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!467
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/467/head"
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?
@blazerTweaks on GitHub · 2026-11-24 03:46 UTC · original
fix/windows10-agility-sdk→main· +137 −0 · 6 files · 1 commits · closed without mergingProblem
Windows 10's own D3D12 runtime stops at shader model 6.5. The root signatures translated shaders need (
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED) are refused:Nothing draws, and about 20 s in the title crashes with an access violation (
read 0x68).victory translate --pipelinesreportsthe device supports SM 0x65 only. That happens even on hardware that supports SM 6.6 (an RTX 3060 Ti on a current driver here). The README lists Windows 10 as supported.Change
agilityonvictory. It exportsD3D12SDKVersion(620) andD3D12SDKPath(.\D3D12\);build.rsadds the/EXPORTlink args. D3D12 then loadsD3D12\D3D12Core.dllfrom next tovictory.exe.D3D12_ERROR_INVALID_REDIST(0x887E0003) for every device. That applies on Windows 11 too, and there is no fallback to the system runtime.cargo xtask agility. It downloadsMicrosoft.Direct3D.D3D121.620.2 from nuget.org (using Windows' owncurlandtar, so no new dependencies) intotarget/agility/. It then copiesD3D12Core.dllandd3d12SDKLayers.dlltotarget/<profile>/D3D12/for every built profile.cargo xtask policypasses.agilitybuild cannot find the DLL.Usage on Windows 10:
Testing
On Windows 10 19045 with an RTX 3060 Ti (driver 32.0.16.1714):
ERROR ... lacks shader model 6.6 ... build victory with --features agility(model 0x65)agility, no DLLERROR ... D3D12\D3D12Core.dll is not next to it: run cargo xtask agilityagility+cargo xtask agilitycargo clippyadds no new warnings.cargo test --workspace: 8 tests fail with and without this change on Windows 10, so they predate it:victory-hlenet::tests::only_loopback_is_reachable:WinHttpGetProxySettingsExis a Windows 11 export.victory-shaderemit::valu_tests: these need an SM 6.6 device, and the test executables don't carry the Agility exports.On this machine loading takes about 4 minutes instead of about 50 s. Entering the world then hangs the GPU; that is a separate issue (NVIDIA's 1,000,000-view heap cap), reported with the DRED report.
🤖 Generated with Claude Code
@blazerTweaks on GitHub · 2026-11-24 03:49 UTC · original
Closing as a duplicate of #175 (fixes #84), which I found after opening this. The opt-in feature and the device-creation hints from here are offered there: #175
Pull request closed