Bladeren bron

vulkan: fix to work with latest Vulkan SDK

rdb 5 jaren geleden
bovenliggende
commit
06504ae029
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      panda/src/vulkandisplay/vulkanGraphicsPipe.cxx

+ 2 - 2
panda/src/vulkandisplay/vulkanGraphicsPipe.cxx

@@ -78,7 +78,7 @@ VulkanGraphicsPipe() : _max_allocation_size(0) {
   }
   }
 
 
   const char *const layers[] = {
   const char *const layers[] = {
-    "VK_LAYER_LUNARG_standard_validation",
+    "VK_LAYER_KHRONOS_validation",
   };
   };
 
 
   std::vector<const char *> extensions;
   std::vector<const char *> extensions;
@@ -594,7 +594,7 @@ VulkanGraphicsPipe() : _max_allocation_size(0) {
       "ASTC_12x12_SRGB_BLOCK",
       "ASTC_12x12_SRGB_BLOCK",
     };
     };
 
 
-    for (int i = 1; i < VK_FORMAT_RANGE_SIZE; ++i) {
+    for (int i = 1; i <= VK_FORMAT_ASTC_12x12_SRGB_BLOCK; ++i) {
       VkFormatProperties fmt_props;
       VkFormatProperties fmt_props;
       vkGetPhysicalDeviceFormatProperties(_gpu, (VkFormat)i, &fmt_props);
       vkGetPhysicalDeviceFormatProperties(_gpu, (VkFormat)i, &fmt_props);