Bundle the DirectX 12 Agility SDK so SM 6.6 is actually available #286
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/286"
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?
Imported from fxceless/victory-fork. Originally posted by ZaneIceMaster11 on 2026-11-24T23:15:26Z.
Problem
On Windows 10 22H2 (this fork's test machine, NVIDIA RTX 3060, current driver), the OS in-box
d3d12.dllcaps shader model at 6.5 on hardware and 6.2 on WARP, even though the driver itself is fully DX12 Ultimate capable. This failed 22victory-shaderGPU tests outright (no SM 6.6 device available), and would have silently gated offvictory-gpu's mesh/world path too, since it checks the identicalD3D_SHADER_MODEL_6_6feature (crates/victory-gpu/src/host.rs).Root cause confirmed by temporarily surfacing the swallowed
Host::new()error: hardware reports SM0x65, WARP reports SM0x62, both below the0x66required. No code in the tree referenced the Agility SDK before this change.Fix
cargo xtask agility-sdk(new): fetchesMicrosoft.Direct3D.D3D121.620.2 from nuget.org (pinned URL + sha256, extracted via Windows' owntar.exe) intotarget/agility-sdk/(gitignored, not game data, not committed - matches this repo's no-committed-binaries policy).build.rsinapps/victoryandcrates/victory-shader: export the requiredD3D12SDKVersion/D3D12SDKPathDATA symbols and copy the two redistributable DLLs next to the built exe/test binaries, if fetched.cargo build/cargo testis unaffected (falls back to the OS runtime, today's behaviour) - the tree stays green either way.Verification
cargo test -p victory-shader --features host emit::went from 22 failed to 108 passed, 0 failed (includes the BVH ray/node tests matching the reference bit for bit on both the hardware adapter and WARP).cargo build --release --workspaceandcargo clippy --workspace --all-targets --release: clean, 0 warnings.Co-authored with Claude Code (Claude Sonnet 5).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.