From: John Tsiombikas Date: Thu, 23 Dec 2021 09:17:21 +0000 (+0200) Subject: some device scoring heuristics X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=HEAD;p=vkray some device scoring heuristics --- diff --git a/src/vk.c b/src/vk.c index 917a801..2a1db64 100644 --- a/src/vk.c +++ b/src/vk.c @@ -446,6 +446,7 @@ static int create_swapchain(void) static int eval_pdev_score(VkPhysicalDevice dev) { + int score = 0; uint32_t i, num_fmt, num_qfam, num_ext; VkQueueFamilyProperties *qfam; VkExtensionProperties *ext; @@ -486,17 +487,35 @@ static int eval_pdev_score(VkPhysicalDevice dev) for(i=0; i