[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / rendering / dx / RenderContext.h
blob9878691ee7e87d0d2b4066c69b9120949e36af20
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #if defined(TARGET_WINDOWS_DESKTOP)
12 #include "windowing/windows/WinSystemWin32DX.h"
13 #elif defined(TARGET_WINDOWS_STORE)
14 #include "windowing/win10/WinSystemWin10DX.h"
15 #endif
16 #include "ServiceBroker.h"
18 namespace DX
20 #if defined(TARGET_WINDOWS_DESKTOP)
21 __inline CWinSystemWin32DX* Windowing()
23 return dynamic_cast<CWinSystemWin32DX*>(CServiceBroker::GetRenderSystem());
25 #elif defined(TARGET_WINDOWS_STORE)
26 __inline CWinSystemWin10DX* Windowing()
28 return dynamic_cast<CWinSystemWin10DX*>(CServiceBroker::GetRenderSystem());
30 #endif