FrontendCommon: Add GPU enumeration methods to D3D11/Vulkan host displays

This commit is contained in:
Connor McLaughlin
2020-06-20 03:33:49 +10:00
parent 85edbce3ca
commit 7fce9b102e
4 changed files with 85 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include <dxgi.h>
#include <memory>
#include <wrl/client.h>
#include <vector>
#include <string>
namespace FrontendCommon {
@ -60,6 +62,8 @@ public:
void RenderSoftwareCursor(s32 left, s32 top, s32 width, s32 height, HostDisplayTexture* texture_handle);
void EndRenderAndPresent();
static std::vector<std::string> EnumerateAdapterNames();
private:
static constexpr u32 DISPLAY_UNIFORM_BUFFER_SIZE = 16;