From 74ff24e4a4900516c623d67dd4d0db88b3353fb0 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 12 Feb 2026 12:55:18 +0800 Subject: [PATCH] [Feat] (MG_Backend/DirectVulkan): more friendly device picker log --- .../DirectVulkan/Renderer/VulkanRenderer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp index 5f0349ff..39b87d03 100644 --- a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp @@ -265,7 +265,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { Bool deviceExtSupported = IsNecessaryDeviceExtensionSupported(newVkDevice); if (!deviceExtSupported) { outBetterDevice = otherDevice; - MGLOG_I(" Ignored physical device: Some of the required device extension not supported on this device."); + MGLOG_I(" Ignored physical device. (Reason: Some of the required device extension not supported on this device)"); return false; } @@ -273,7 +273,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { newDevice.swapchainCapabilities = GetSwapchainCapabilities(newVkDevice, surface); if (!newDevice.swapchainCapabilities.IsComplete()) { outBetterDevice = otherDevice; - MGLOG_I(" Ignored physical device: Swapchain capabilities not met."); + MGLOG_I(" Ignored physical device. (Reason: Swapchain capabilities not met)"); return false; } @@ -282,7 +282,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { newDevice.queueFamilies.graphicsFamily = GetQueueFamilyIndex(queueFamilies, VK_QUEUE_GRAPHICS_BIT); if (newDevice.queueFamilies.graphicsFamily == -1) { outBetterDevice = otherDevice; - MGLOG_I(" Ignored physical device: No graphics queue family."); + MGLOG_I(" Ignored physical device. (Reason: No graphics queue family)"); return false; } @@ -290,7 +290,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { GetPresentQueueFamilyIndex(newDevice, surface, queueFamilies, newDevice.queueFamilies.graphicsFamily); if (newDevice.queueFamilies.presentFamily == -1) { outBetterDevice = otherDevice; - MGLOG_I(" Ignored physical device: No present queue family."); + MGLOG_I(" Ignored physical device. (Reason: No present queue family)"); return false; } @@ -298,7 +298,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { if (newDevice.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU && otherDevice.properties.deviceType != VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) { outBetterDevice = newDevice; - MGLOG_I(" Picked physical device: Discrete GPU."); + MGLOG_I(" Picked physical device. (Reason: Discrete GPU)"); return true; } @@ -306,7 +306,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { if (newDevice.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU && otherDevice.properties.deviceType != VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) { outBetterDevice = newDevice; - MGLOG_I(" Picked physical device: Integrated GPU and no discrete one found yet."); + MGLOG_I(" Picked physical device. (Reason: Integrated GPU and no discrete one found yet)"); return true; } @@ -314,7 +314,7 @@ namespace MobileGL::MG_Backend::DirectVulkan { if (newDevice.properties.deviceType != VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU && otherDevice.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) { outBetterDevice = newDevice; - MGLOG_I(" Ignored physical device: Already picked discrete GPU."); + MGLOG_I(" Ignored physical device. (Reason: Already picked discrete GPU)"); return false; }