Windows 10: export D3D12SDKVersion/D3D12SDKPath and fetch the Agility SDK (#69) #73
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/DoubleGhosty--cool_fox!73
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-73"
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?
@Hasusmogus on GitHub · 2026-11-27 08:13 UTC · original
Hasusmogus:fix-69-agility→main· +102 −0 · 5 files · 2 commits · closed without mergingAddresses the root signature part of #69 (Windows 10,
0x80070057for root signatures with flagsc00/c01).Translated shaders use shader model 6.6 bindless heaps (
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED), which Windows 10's own D3D12 runtime does not take. The usual answer is the D3D12 Agility SDK, which is what the reporter did by hand. The repo now does it:apps/victory/src/agility.rs, only with--features agility-sdk: exportsD3D12SDKVersion = 619andD3D12SDKPath = ".\\D3D12\\"fromvictory.exe(a.drectvedirective in the object tells the linker, asdllexportdoes; an executable exports nothing otherwise, which is why the reporter needed the/EXPORTlines).scripts/get-agility-sdk.ps1: downloadsMicrosoft.Direct3D.D3D121.619.6 (the version the reporter confirmed) from nuget.org and copiesD3D12Core.dllandd3d12SDKLayers.dllintotarget\release\D3D12\andtarget\diag\D3D12\. The DLLs are never committed (asset policy).--features agility-sdk, then the script).Opt-in, and why (changed after the first version of this PR): with the exports and no
D3D12Core.dllinD3D12\, D3D12 does not fall back to the system's runtime. Every call fails withD3D12_ERROR_INVALID_REDIST(0x887E0003), which is what Windows CI's GPU tests hit with the exports always on. So the default build exports nothing and is exactly as before; only a Windows 10 build asks for the SDK. Under Wine and Proton, vkd3d-proton is the runtime and the exports change nothing.Checked
victory.exeexports nothing; with itllvm-readobj --coff-exportslists both, and reading them back out of the file gives619and.\D3D12\.cargo clippy --workspace --all-targets [--all-features] -- -D warnings: clean; asset policy passes.unknown_pipelineslots 0x1c8/0x218 and the write to null at+0x23cf683on the RX 9070) is a separate problem and not touched.🤖 Generated with Claude Code
@DoubleGhosty on GitHub · 2026-11-27 08:53 UTC · original
Cherry-picked into main as d4315922..e5055d6d. Thanks!
Pull request closed