Skip to content

Commit 7d775a7

Browse files
MikhailGorobetsTheMostDiligent
authored andcommitted
Disable DLSS and DSR on 32-bit Windows; Fix unused provider warning
1 parent 9c2f4e3 commit 7d775a7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Graphics/SuperResolution/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(Diligent-SuperResolution CXX)
77
set(DILIGENT_DLSS_SUPPORTED FALSE CACHE INTERNAL "DLSS is not supported")
88
set(DILIGENT_DSR_SUPPORTED FALSE CACHE INTERNAL "DirectSR is not supported")
99

10-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD)
10+
if(PLATFORM_WIN32 AND NOT MINGW_BUILD AND CMAKE_SIZEOF_VOID_P EQUAL 8)
1111
if (D3D11_SUPPORTED OR D3D12_SUPPORTED OR VULKAN_SUPPORTED)
1212
set(DILIGENT_DLSS_SUPPORTED TRUE CACHE INTERNAL "DLSS is supported on Win32 platform")
1313
endif()

Graphics/SuperResolution/src/SuperResolutionFactory.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#include "EngineMemory.h"
3232
#include "PlatformDebug.hpp"
3333

34+
#include <memory>
35+
3436
namespace Diligent
3537
{
3638

@@ -103,6 +105,7 @@ class SuperResolutionFactory : public ObjectBase<ISuperResolutionFactory>
103105
#ifdef DILIGENT_METALFX_SUPPORTED
104106
AddProvider(pDevice, CreateMetalFXProvider, "MetalFX");
105107
#endif
108+
(void)AddProvider;
106109
}
107110

108111
IMPLEMENT_QUERY_INTERFACE_IN_PLACE(IID_SuperResolutionFactory, TBase)

0 commit comments

Comments
 (0)