1
0

2 Commits 2fc4ebf1ce ... 9de272e65d

Autor SHA1 Nachricht Datum
  Kajetan Johannes Hammerle 9de272e65d Increase surface format buffer vor 1 Monat
  Kajetan Johannes Hammerle 75f3af72a1 Strong negative points from failure vor 1 Monat
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 1 1
      src/VulkanBase.cpp
  2. 5 5
      src/VulkanWrapper.cpp

+ 1 - 1
src/VulkanBase.cpp

@@ -231,7 +231,7 @@ bool Base::getSurfaceCapabilities(VkSurfaceCapabilitiesKHR& c) {
 
 bool Base::findSurfaceFormat(
     VkSurfaceFormatKHR& sf, SurfaceFormatSelector sfs) {
-    Core::Array<VkSurfaceFormatKHR, 64> formats;
+    Core::Array<VkSurfaceFormatKHR, 128> formats;
     u32 c = formats.getLength();
     VK_CHECK_TRUE(vkGetPhysicalDeviceSurfaceFormatsKHR(
         physicalDevice, surface, &c, formats.begin()));

+ 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);
         }