Skip to content

Commit b42776a

Browse files
SuperResolution: disable DSR if Windows SDK version is less than 10.0.26100.0
1 parent 74cced2 commit b42776a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/SuperResolution/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(DILIGENT_DLSS_SUPPORTED FALSE CACHE INTERNAL "DLSS is not supported")
88
set(DILIGENT_DSR_SUPPORTED FALSE CACHE INTERNAL "DirectSR is not supported")
99
set(DILIGENT_FSR_SUPPORTED TRUE CACHE INTERNAL "FSR is not supported")
1010

11-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD AND CMAKE_SIZEOF_VOID_P EQUAL 8)
11+
if(PLATFORM_WIN32 AND NOT MINGW_BUILD AND (CMAKE_SIZEOF_VOID_P EQUAL 8) AND ("${WINDOWS_SDK_VERSION}" VERSION_GREATER_EQUAL "10.0.26100.0"))
1212
if (D3D11_SUPPORTED OR D3D12_SUPPORTED OR VULKAN_SUPPORTED)
1313
set(DILIGENT_DLSS_SUPPORTED TRUE CACHE INTERNAL "DLSS is supported on Win32 platform")
1414
endif()

0 commit comments

Comments
 (0)