blender/build_files/cmake/Modules/FindDLSS.cmake
Patrick Mours e1fa0c2805 Cycles: Add NVIDIA DLSS support for viewport denoising
Adds the option to use DLSS Ray Reconstruction for viewport denoising
in Cycles. For this to work, scheduling is adjusted to continuously
reset samples (so that independent frames are rendered), pixel jitter
is forced on and the required denoising passes (color, depth, diffuse
albedo, specular albedo, normals, roughness, motion vectors, specular
motion vectors) are enabled.
DLSS expects those inputs in the form of CUDA textures, while Cycles
keeps passes in an interleaved buffer layout. The data therefore has to
be converted, for which specialized versions of the existing denoising
filter kernels are introduced, which read/write directly to temporary
CUDA textures that are managed in denoiser_dlss.cpp.

The integration of DLSS itself is done in a similar fashion to OptiX:
The DLSS SDK is pulled in for the type definitions, but the DLSS
implementation is loaded by the NVIDIA driver installed on the system.

Pull Request: https://projects.blender.org/blender/blender/pulls/153077
2026-09-10 14:17:46 +02:00

19 lines
490 B
CMake

# SPDX-FileCopyrightText: 2026 Blender Authors
#
# SPDX-License-Identifier: BSD-3-Clause
# Find the DLSS SDK. This modules defines
# DLSS_INCLUDE_DIR, where to find the NGX headers for DLSS
# DLSS_FOUND, if the DLSS SDK is found.
find_path(DLSS_INCLUDE_DIR
NAMES
"nvsdk_ngx.h"
PATHS
"${DLSS_SDK_ROOT}/include"
"$ENV{DLSS_SDK_ROOT}/include"
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DLSS REQUIRED_VARS DLSS_INCLUDE_DIR)