mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
Make deviceRank an Uint64 to avoid potential overflow issues in case of future GPUs with huge VRAM
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user