From 618f85fafe271bed66a9e057de90299e65258e99 Mon Sep 17 00:00:00 2001 From: suleyth Date: Sun, 17 Aug 2025 22:48:02 +0200 Subject: [PATCH] Make deviceRank an Uint64 to avoid potential overflow issues in case of future GPUs with huge VRAM --- src/gpu/vulkan/SDL_gpu_vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index 894e1100e9..9ae781e0bf 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -11252,7 +11252,7 @@ static Uint8 VULKAN_INTERNAL_IsDeviceSuitable( VkPhysicalDevice physicalDevice, VulkanExtensions *physicalDeviceExtensions, Uint32 *queueFamilyIndex, - Uint16 *deviceRank) + Uint64 *deviceRank) { Uint32 queueFamilyCount, queueFamilyRank, queueFamilyBest; VkQueueFamilyProperties *queueProps; @@ -11411,7 +11411,7 @@ static Uint8 VULKAN_INTERNAL_DeterminePhysicalDevice(VulkanRenderer *renderer) Uint32 i, physicalDeviceCount; Sint32 suitableIndex; Uint32 queueFamilyIndex, suitableQueueFamilyIndex; - Uint16 deviceRank, highestRank; + Uint64 deviceRank, highestRank; vulkanResult = renderer->vkEnumeratePhysicalDevices( renderer->instance,