GPU: Add D3D12 renderer

This commit is contained in:
Connor McLaughlin
2021-07-10 21:37:08 +10:00
parent 5da9edceb9
commit 14e7f8fd13
37 changed files with 5838 additions and 2 deletions

View File

@ -42,6 +42,7 @@ Log_SetChannel(QtHostInterface);
#ifdef _WIN32
#include "common/windows_headers.h"
#include "frontend-common/d3d11_host_display.h"
#include "frontend-common/d3d12_host_display.h"
#include <KnownFolders.h>
#include <ShlObj.h>
#endif
@ -598,6 +599,10 @@ HostDisplay* QtHostInterface::createHostDisplay()
break;
#ifdef _WIN32
case GPURenderer::HardwareD3D12:
m_display = std::make_unique<FrontendCommon::D3D12HostDisplay>();
break;
case GPURenderer::HardwareD3D11:
default:
m_display = std::make_unique<FrontendCommon::D3D11HostDisplay>();