Vulkan/Context: Support specifying GPU to use

This commit is contained in:
Connor McLaughlin
2020-06-20 03:33:55 +10:00
parent 4a04800132
commit 1b5f8db2fc
3 changed files with 22 additions and 9 deletions

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;