Repository navigation
Conversation
Windows 10's inbox D3D12 stops at shader model 6.5 while translated title shaders need 6.6. When target/<profile>/D3D12/D3D12Core.dll is present, apps/victory's build script exports D3D12SDKVersion/D3D12SDKPath so the loader picks that runtime; otherwise it warns instead of failing later with a confusing SM 6.5 device error. `cargo xtask agility` downloads the pinned Microsoft.Direct3D.D3D12 1.614.1 package, checks SHA-256, and stages the DLL (never committed). Fixes Marvisak#84 Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
|
Built and checked on the machine this is for: Windows 10 19045, MSVC 14.44.35207, With With the folder removed and the crate rebuilt: no exports at all — so the build script really re-runs on the file's disappearance and a machine without the runtime keeps the in-box D3D12. Both test-plan boxes that do not need the title are ticked on Windows 10 here. Two things worth keeping, and one to consider:
For the record, this is the piece Windows 10 users need that #2307 measures (0 → 26,641 pipelines) and that the guide in #1612 tracks; the same staging I used here is what let me validate today's shader work on the card. |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f):
- Opt-in Agility SDK staging (
cargo xtask agility) andapps/victory/build.rsintegration build and pass allxtaskandvictorytests cleanly without affecting default builds when no app-localD3D12Core.dllis present. cargo test -p xtask: 8/8 passed (includingagility::tests::package_constants_agreeandsha256_of_known_bytes).cargo test -p victory: 12/12 passed.cargo clippy -p xtask -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 185 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Opt-in Agility SDK runtime: cargo xtask agility downloads Microsoft.Direct3D.D3D12 1.614.1 into target, build.rs exports D3D12SDKVersion/Path when D3D12Core.dll present (+382). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Legit mechanism for Windows 10 SM 6.6 support (#84); pairs with README #2360. Downloads an official Microsoft NuGet package — hash-pinning the package would harden the supply chain here.
Calvix2k's review on Marvisak#2383: require staged D3D12Core.dll >= 1.614.1 (older → 0x887e0003), allow VICTORY_AGILITY_VERSION to pin a newer announce, and fail early with that HRESULT instead of a soft warning. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
|
Thanks @Calvix2k — addressed in f40129a:
Kept |
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into From the earlier needs-work note: it needs the maintainer's decision (new Generated by Claude Code |
Summary
Opts
victory.exeinto an app-local DirectX 12 Agility SDK runtime so Windows 10 can run builds that need a newer D3D12 feature level / SM 6.6 without relying on the OS-shipped runtime alone.Changes
xtask(agilitymodule) and victorybuild.rs/main.rsTest plan
D3D12Core.dllnext tovictory.exeand runs on Windows 10victory.exealone is still insufficient (as documented)Related: #84, #2360