Add dlss to the game build on Windows + NVIDIA RTX with the SDK
build / mod (push) Failing after 29s
build / mod (push) Failing after 29s
tools/airdef.py game always built with --features mods, so an RTX user had to run the manual cargo line from docs/DLSS-TESTING.md. The feature string now comes from dlss_build_features(): dlss is added only when the OS is Windows, a Win32_VideoController name has both NVIDIA and RTX, the DLSS SDK has include/nvngx*.h and lib/Windows_x86_64/x64 (DLSS_SDK, a repo DLSS/ dir or %ProgramFiles%\NVIDIA\DLSS), and VULKAN_SDK has Include/vulkan/vulkan.h (dlss_wgpu's build script needs both SDKs). Otherwise the build stays mods-only; on Windows + RTX without the SDK it prints how to get v310.9.1 instead of failing. GPU/SDK probe errors mean "no DLSS" and never abort the build; the HORIZON_DLSS runtime switch is untouched. Tests: tools/test_airdef_build.py covers non-Windows, no RTX, missing DLSS SDK, missing Vulkan SDK, the full toolchain, a failed GPU probe, the SDK layout check and the feature string reaching cargo. python3 tools/airdef.py game still builds mods-only on macOS (fresh target dir: 3m11s, exit 0). Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
@@ -54,6 +54,8 @@ DLSS Super Resolution: [1280, 720] -> [1920, 1080]
|
||||
|
||||
Нужны Visual Studio Build Tools с C++, Rust, clang, Vulkan SDK и NVIDIA DLSS SDK v310.9.1. Ветка — `kimi-work`.
|
||||
|
||||
`python3 tools/airdef.py game` сам добавляет `dlss` к features на Windows с NVIDIA RTX, если заданы `DLSS_SDK` и `VULKAN_SDK`; без них он предупреждает и собирает только `mods`. Ручная сборка ниже делает то же самое явно.
|
||||
|
||||
```powershell
|
||||
git clone --branch kimi-work https://gitea.maoniao.team/chexit/airdef.git
|
||||
cd airdef
|
||||
|
||||
Reference in New Issue
Block a user