Pr/420 shaders dxil #557

Open
github-bot wants to merge 2 commits from github-bot/gh-557 into main AGit
Owner

@⁠pug205gti6 on GitHub · 2026-11-25 02:08 UTC · original
pug205gti6:pr/420-shaders-dxil → main · +469 −3 · 12 files · 2 commits · open

No description provided.

**@⁠pug205gti6** on GitHub · 2026-11-25 02:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/557) `pug205gti6:pr/420-shaders-dxil` → `main` · +469 −3 · 12 files · 2 commits · open *No description provided.*
Windows 10's in-box D3D12 stops at shader model 6.5 and refuses root
signatures with the directly indexed heap flags (c01), so every
translated pipeline was refused and nothing drew (#84).

victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath
(.\D3D12\), and `cargo xtask agility` fetches Microsoft.Direct3D.D3D12
1.620.2 from nuget.org, checks its published SHA-512, and puts
D3D12Core.dll and d3d12SDKLayers.dll in target\<profile>\D3D12\. The
DLLs never enter the repository. Windows 11, or a missing folder, keeps
the in-box runtime.

`victory config` reports whether the runtime is in place, and the SM 6.5
error names the command.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

[Ported onto fxceless/victory-fork: miniz_oxide is declared in xtask itself, since this
tree's workspace uses zlib-rs and no longer lists it; show_config keeps the data_dir line
above the d3d12 sdk lines.]

(cherry picked from commit 19aec59, Marvisak/VIctory#175)
On Windows 10 the victory-shader test executables had no D3D12SDKVersion
and D3D12SDKPath exports, so every host device stopped at shader model 6.5:
the 7 emit::valu_tests failed and the device-backed tests skipped.

The tests now export them (path ..\D3D12\, the folder `cargo xtask
agility` fills) only when D3D12Core.dll is there: D3D12 does not fall back
to the in-box runtime when the named one is missing. The build script
watches the DLL only when it exists, so a missing runtime does not rebuild
the crate every time; the xtask touches build.rs after installing it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f3c7333456)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:17 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/build.rs
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.
git fetch -u origin '+refs/pull/557/head:github-bot/gh-557'
git switch 'github-bot/gh-557'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-557'
git switch 'github-bot/gh-557'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-557'
git switch 'github-bot/gh-557'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-557'
git switch 'main'
git merge --squash 'github-bot/gh-557'
git switch 'main'
git merge --ff-only 'github-bot/gh-557'
git switch 'main'
git merge 'github-bot/gh-557'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.