Get-D3D12.cmd: Microsoft's newer Direct3D 12 runtime for a build of your own, in one double-click (#861) #928

Manually merged
github merged 1 commit from github-bot/gh-928 into main 2026-11-29 08:22:28 +00:00 AGit
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 09:14 UTC · original
kibagami-nc:launch/get-d3d12-cmd → main · +12 −1 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC

Why

On Windows 10, the layer needs Microsoft's newer Direct3D 12 runtime: D3D12\D3D12Core.dll beside victory.exe. Windows 10's own runtime stops at shader model 6.5.

victory.exe play offers it at the start, but the script launchers start victory.exe run, which does not (#210 adds that check to them). For a build of your own, scripts\get-d3d12.ps1 puts the file beside target\release\victory.exe. Started as .\get-d3d12.ps1, Windows refuses it where running scripts is off, which is the default:

.\get-d3d12.ps1 : File ...\scripts\get-d3d12.ps1 cannot be loaded because running scripts is disabled on this system.

That is #861. Its reporter got past it with powershell -ExecutionPolicy Bypass -File .\get-d3d12.ps1.

The change

  • Get-D3D12.cmd at the top of the repository runs scripts\get-d3d12.ps1 with -NoProfile -ExecutionPolicy Bypass and passes its arguments on. It is the same as Get-NVIDIA-DLSS.cmd and Get-AMD-FSR.cmd do for theirs: double-click it once.
  • README: a line in the build-it-yourself block beside Get-NVIDIA-DLSS.cmd ("once, Windows 10 only"), and a mention where the README explains the Windows 10 runtime.

The script itself is unchanged: it still checks the package and the DLL against the tested SHA-256 and Microsoft's signature.

Tests

Get-D3D12.cmd -Version 0.0.0 -To <a scratch folder>, a version that does not exist, so nothing is downloaded:

  • the script ran;
  • it took both arguments;
  • it stopped at nuget.org's 404 (could not get https://api.nuget.org/.../microsoft.direct3d.d3d12.0.0.0.nupkg);
  • it left no file behind.

The real download is the same script that victory.exe get-d3d12 runs.

No game files, dumps or extracted data are included.

**@⁠kibagami-nc** on GitHub · 2026-11-28 09:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/928) `kibagami-nc:launch/get-d3d12-cmd` → `main` · +12 −1 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC ## Why On Windows 10, the layer needs Microsoft's newer Direct3D 12 runtime: `D3D12\D3D12Core.dll` beside `victory.exe`. Windows 10's own runtime stops at shader model 6.5. `victory.exe play` offers it at the start, but the script launchers start `victory.exe run`, which does not (#210 adds that check to them). For a build of your own, `scripts\get-d3d12.ps1` puts the file beside `target\release\victory.exe`. Started as `.\get-d3d12.ps1`, Windows refuses it where running scripts is off, which is the default: ``` .\get-d3d12.ps1 : File ...\scripts\get-d3d12.ps1 cannot be loaded because running scripts is disabled on this system. ``` That is #861. Its reporter got past it with `powershell -ExecutionPolicy Bypass -File .\get-d3d12.ps1`. ## The change - **`Get-D3D12.cmd`** at the top of the repository runs `scripts\get-d3d12.ps1` with `-NoProfile -ExecutionPolicy Bypass` and passes its arguments on. It is the same as `Get-NVIDIA-DLSS.cmd` and `Get-AMD-FSR.cmd` do for theirs: double-click it once. - **README:** a line in the build-it-yourself block beside `Get-NVIDIA-DLSS.cmd` ("once, Windows 10 only"), and a mention where the README explains the Windows 10 runtime. The script itself is unchanged: it still checks the package and the DLL against the tested SHA-256 and Microsoft's signature. ## Tests `Get-D3D12.cmd -Version 0.0.0 -To <a scratch folder>`, a version that does not exist, so nothing is downloaded: - the script ran; - it took both arguments; - it stopped at nuget.org's 404 (`could not get https://api.nuget.org/.../microsoft.direct3d.d3d12.0.0.0.nupkg`); - it left no file behind. The real download is the same script that `victory.exe get-d3d12` runs. No game files, dumps or extracted data are included.
On Windows 10, a build of your own started from the script launchers
needs D3D12\D3D12Core.dll beside target\release\victory.exe, and only
victory.exe play offers it. scripts\get-d3d12.ps1 fetches it, but
started as .\get-d3d12.ps1 it is refused where Windows runs no scripts,
its default ("running scripts is disabled on this system", #861).
Get-D3D12.cmd runs it with -ExecutionPolicy Bypass, as Get-NVIDIA-DLSS.cmd
and Get-AMD-FSR.cmd run theirs; the README names it beside them.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:30:25 +00:00
github manually merged commit 5cfc57b207 into main 2026-11-29 08:22:28 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!928
No description provided.