From bc4886079b79d1f6be63cd3b9b77f585ac640c71 Mon Sep 17 00:00:00 2001 From: David Klein Date: Tue, 20 Feb 2024 12:51:19 +0100 Subject: [PATCH] prevent warning when -Wswitch is enabled --- .../Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h index 2c5e0e774..249cae2ae 100644 --- a/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h +++ b/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/Vulkan.c.h @@ -780,6 +780,8 @@ void kinc_g5_internal_init() { case VK_PHYSICAL_DEVICE_TYPE_CPU: // CPU gets a score of zero break; + case VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM: + break; } // TODO: look into using more metrics than just the device type for scoring, eg: available memory, max texture sizes, etc. // If this is the first usable device, skip testing against the previous best.