Vulkan/Context: Support specifying GPU to use

This commit is contained in:
Connor McLaughlin committed 2020-06-20 03:34:19 +10:00
1 parent 4a04800132
commit 1b5f8db2fc
3 files changed
+22 -9

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ void VulkanHostDisplay::SetVSync(bool enabled)
bool VulkanHostDisplay::CreateContextAndSwapChain(const WindowInfo& wi, bool debug_device)
{
if (!Vulkan::Context::Create(0u, &wi, &m_swap_chain, debug_device, false))
if (!Vulkan::Context::Create({}, &wi, &m_swap_chain, debug_device, false))
{
Log_ErrorPrintf("Failed to create Vulkan context");
return false;