Make deviceRank an Uint64 to avoid potential overflow issues in case of future GPUs with huge VRAM

This commit is contained in:
suleyth 2025-08-17 22:48:02 +02:00 committed by Ethan Lee
parent c5b79e5f1b
commit 618f85fafe

View file

@ -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,