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.
This commit is contained in:
9
Get-D3D12.cmd
Normal file
9
Get-D3D12.cmd
Normal file
@ -0,0 +1,9 @@
|
||||
@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
|
||||
@ -59,7 +59,8 @@
|
||||
6.6 the game shows a black screen and closes within seconds. So the first start
|
||||
there offers to fetch Microsoft's newer Direct3D 12 runtime (the D3D12 Agility
|
||||
SDK, `D3D12Core.dll`, about 22 MB from nuget.org). It goes into a `D3D12`
|
||||
folder beside `victory.exe`. `victory.exe get-d3d12` does the same by hand.
|
||||
folder beside `victory.exe`. `victory.exe get-d3d12` does the same by hand, and
|
||||
`Get-D3D12.cmd` does it for a build of your own (into `target\release\D3D12`).
|
||||
The file is checked against Microsoft's signature and the tested SHA-256.
|
||||
Windows 11 keeps using its own runtime. A `D3D12` folder that is already
|
||||
there, for example from a repack or another guide (1.618, 1.620), is used
|
||||
@ -311,6 +312,7 @@ git clone https://github.com/trustno1-coder/VIctory-NVIDIA
|
||||
cd VIctory-NVIDIA
|
||||
copy victory.example.toml victory.toml # then set game_dir to your dump's folder, outside this one
|
||||
.\Get-NVIDIA-DLSS.cmd # once: NVIDIA's DLSS and frame generation files, about 70 MB
|
||||
.\Get-D3D12.cmd # once, Windows 10 only: Microsoft's newer Direct3D 12 runtime, about 22 MB
|
||||
scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user