Skip to content

Commit e6b65d1

Browse files
Switch DLSS SDK to custom DLSS-Headers repository
1 parent d412d29 commit e6b65d1

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

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/MikhailGorobets/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)
158151

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

0 commit comments

Comments
 (0)