Files
VIctory-NVIDIA/Get-D3D12.cmd
Manley.B 03b51ee0f1 Get-D3D12.cmd: Microsoft's newer Direct3D 12 runtime for a build of your own, in one double-click (#861)
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.
2026-11-28 20:14:39 +11:00

9 lines
624 B
Batchfile

@echo off
rem Downloads Microsoft's newer Direct3D 12 runtime (the D3D12 Agility SDK, D3D12Core.dll, about 22 MB)
rem from nuget.org and puts it where the layer looks for it (target\release\D3D12 in this folder). Only
rem Windows 10 needs it: its own Direct3D 12 stops at shader model 6.5, and the translated shaders are 6.6.
rem Run it once. It is Microsoft's, under Microsoft's licence, which is saved beside it; this repository
rem does not contain it. victory.exe get-d3d12 does the same beside the victory.exe it is run as.
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\get-d3d12.ps1" %*
echo.
pause