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

Merged
kibagami-nc merged 1 commit from upstream-pr/928 into main 2026-11-29 08:16:58 +00:00
kibagami-nc commented 2026-11-28 09:14:57 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T09:14:57Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5538639458 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/928). Originally posted by [kibagami-nc](https://github.com/kibagami-nc) on 2026-11-28T09:14:57Z. --- ## 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.
Sign in to join this conversation.
No reviewers
No labels
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.

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