Bundle the DirectX 12 Agility SDK so SM 6.6 is actually available #286
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/fxceless--victory-fork!286
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ZaneIceMaster11 on GitHub · 2026-11-24 23:15 UTC · original
ZaneIceMaster11:fix/shader-model-6-6-agility-sdk→main· +344 −4 · 10 files · 1 commits · openProblem
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).
On Windows 10 22H2 (this fork's test machine, NVIDIA RTX 3060, current driver), the OS in-box d3d12.dll caps shader model at 6.5 on hardware and 6.2 on WARP, even though the driver itself is fully DX12 Ultimate capable. This failed 22 victory-shader GPU tests outright ("no SM 6.6 device available") and would have silently gated off victory-gpu's mesh/world path too, since it checks the identical D3D_SHADER_MODEL_6_6 feature (crates/victory-gpu/src/host.rs). Root cause confirmed by temporarily surfacing the swallowed Host::new() error: hardware reports SM 0x65, WARP reports SM 0x62, both below the 0x66 required. No prior code in the tree referenced the Agility SDK at all. Fix: `cargo xtask agility-sdk` (new, xtask/src/agility.rs) fetches Microsoft.Direct3D.D3D12 1.620.2 from nuget.org (pinned URL + sha256, extracted via Windows' own tar.exe) into target/agility-sdk/ (gitignored, not game data, not committed - matches this repo's no-committed-binaries policy). New build.rs files in apps/victory and crates/victory-shader export the required D3D12SDKVersion/D3D12SDKPath DATA symbols and copy the two redistributable DLLs next to the built exe/test binaries when fetched. With no fetch and no network, a plain `cargo build`/`cargo test` is unaffected (falls back to the OS runtime, today's behaviour) - the tree stays green either way. Verified: 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). Full `cargo build --release --workspace` and `cargo clippy --workspace --all-targets --release` are clean, 0 warnings. Co-Authored-By: Claude Sonnet 5 <[email protected]>View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.