Permalink
Browse files

Vulkan: Fix some missing switch warnings.

Might as well prefer a virtual GPU over a CPU maybe...
  • Loading branch information...
unknownbrackets committed Jun 17, 2018
1 parent d1fa9b9 commit e4127890ec6dea5e79d35b69a446f8e8c4caf3f5
Showing with 9 additions and 1 deletion.
  1. +5 −0 Common/Vulkan/VulkanContext.cpp
  2. +2 −0 Common/Vulkan/VulkanLoader.cpp
  3. +2 −1 UI/GameSettingsScreen.cpp
@@ -444,12 +444,17 @@ int VulkanContext::GetBestPhysicalDevice() {
case VK_PHYSICAL_DEVICE_TYPE_CPU:
score += 1;
break;
case VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU:
score += 2;
break;
case VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU:
score += 20;
break;
case VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU:
score += 10;
break;
default:
break;
}
if (props.vendorID == VULKAN_VENDOR_AMD) {
score += 5;
@@ -313,6 +313,8 @@ bool VulkanMayBeAvailable() {
case VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU:
anyGood = true;
break;
default:
break;
}
// TODO: Should also check queuefamilyproperties for a GRAPHICS queue family? Oh well.
}
@@ -104,8 +104,9 @@ bool DoesBackendSupportHWTess() {
case GPUBackend::VULKAN:
case GPUBackend::DIRECT3D11:
return true;
default:
return false;
}
return false;
}
static std::string PostShaderTranslateName(const char *value) {

0 comments on commit e412789

Please sign in to comment.