vulkaninfo: Update VkFormat ranges
authorCharles Giessen <charles@lunarg.com>
Thu, 13 Feb 2020 21:06:11 +0000 (14:06 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 13 Feb 2020 21:59:13 +0000 (14:59 -0700)
The vulkan spec deprecated usage of the BEGIN END and RANGE enum values in
the vulkan headers, thus necessitating a removal of those features in
vulkaninfo.

Change-Id: I56998cfddd647865e4078351e30e9687d6449fb9

vulkaninfo/vulkaninfo.h

index d5ea32c..c64148c 100644 (file)
@@ -1278,10 +1278,9 @@ struct AppGpu {
         supported_format_ranges = {
             {
                 // Standard formats in Vulkan 1.0
-                VK_MAKE_VERSION(1, 0, 0),
-                NULL,
-                VK_FORMAT_BEGIN_RANGE,
-                VK_FORMAT_END_RANGE,
+                VK_MAKE_VERSION(1, 0, 0), NULL,
+                static_cast<VkFormat>(0),   // first core VkFormat
+                static_cast<VkFormat>(184)  // last core VkFormat
             },
             {
                 // YCBCR extension, standard in Vulkan 1.1