Explorar el Código

Strong negative points from failure

Kajetan Johannes Hammerle hace 1 mes
padre
commit
75f3af72a1
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/VulkanWrapper.cpp

+ 5 - 5
src/VulkanWrapper.cpp

@@ -655,27 +655,27 @@ struct VulkanDummy {
         d.graphicsFamily = b.findQueueFamily(VK_QUEUE_GRAPHICS_BIT);
         if(d.graphicsFamily == Vulkan::INVALID_QUEUE_FAMILY) {
             LOG_INFO("> ... has no graphics family");
-            points = -1;
+            points = -1000;
         }
         d.presentFamily = b.findSurfaceQueueFamily();
         if(d.presentFamily == Vulkan::INVALID_QUEUE_FAMILY) {
             LOG_INFO("> ... has no present family");
-            points = -1;
+            points = -1000;
         }
         if(!b.hasExtension(VK_KHR_SWAPCHAIN_EXTENSION_NAME)) {
             LOG_INFO("> ... has no swapchain support");
-            points = -1;
+            points = -1000;
         }
         if(b.findSurfaceFormat(d.surfaceFormat, getSurfaceFormatPoints)) {
             LOG_INFO("> ... has no matching surface format");
-            points = -1;
+            points = -1000;
         } else {
             points += getSurfaceFormatPoints(d.surfaceFormat);
         }
         if(b.findSurfacePresentMode(
                d.presentMode, getSurfacePresentModePoints)) {
             LOG_INFO("> ... has no matching present mode");
-            points = -1;
+            points = -1000;
         } else {
             points += getSurfacePresentModePoints(d.presentMode);
         }