Skip to content

Commit 9c2f4e3

Browse files
MikhailGorobetsTheMostDiligent
authored andcommitted
Switch DLSS SDK to custom DLSS-Headers repository
1 parent 201a3a0 commit 9c2f4e3

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Graphics/SuperResolution/CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ endif()
3838
if(DILIGENT_DLSS_SUPPORTED)
3939
# Fetch NVIDIA DLSS SDK headers
4040
FetchContent_DeclareShallowGit(DLSS-Headers
41-
GIT_REPOSITORY https://github.com/NVIDIA/DLSS.git
42-
GIT_TAG main
41+
GIT_REPOSITORY https://github.com/DiligentGraphics/DLSS-Headers.git
42+
GIT_TAG master
4343
)
4444
FetchContent_MakeAvailable(DLSS-Headers)
4545
endif()
@@ -147,14 +147,7 @@ if(DILIGENT_DSR_SUPPORTED)
147147
endif()
148148

149149
if(DILIGENT_DLSS_SUPPORTED)
150-
set(DLSS_SDK_DIR ${FETCHCONTENT_BASE_DIR}/dlss-headers-src)
151-
target_include_directories(Diligent-SuperResolution-static PRIVATE ${DLSS_SDK_DIR}/include)
152-
153-
# Link NGX static library (dynamic CRT /MD variant)
154-
target_link_libraries(Diligent-SuperResolution-static PRIVATE
155-
debug ${DLSS_SDK_DIR}/lib/Windows_x86_64/x64/nvsdk_ngx_d_dbg.lib
156-
optimized ${DLSS_SDK_DIR}/lib/Windows_x86_64/x64/nvsdk_ngx_d.lib
157-
)
150+
target_link_libraries(Diligent-SuperResolution-static PRIVATE DLSS-Headers DLSS-NGX)
158151

159152
if(D3D12_SUPPORTED)
160153
target_link_libraries(Diligent-SuperResolution-static PRIVATE Diligent-GraphicsEngineD3D12-static)

0 commit comments

Comments
 (0)