Fix glfwinfo output of Vulkan layer spec version

(cherry picked from commit f27daa34ad)
This commit is contained in:
Camilla Löwy 2023-01-26 18:18:14 +01:00
parent 0c2db4a23e
commit 06a2ed38ea

View File

@ -230,9 +230,10 @@ static void list_vulkan_instance_layers(void)
for (i = 0; i < lp_count; i++) for (i = 0; i < lp_count; i++)
{ {
printf(" %s (v%u) \"%s\"\n", printf(" %s (spec version %u.%u) \"%s\"\n",
lp[i].layerName, lp[i].layerName,
lp[i].specVersion >> 22, VK_VERSION_MAJOR(lp[i].specVersion),
VK_VERSION_MINOR(lp[i].specVersion),
lp[i].description); lp[i].description);
} }
@ -259,9 +260,10 @@ static void list_vulkan_device_layers(VkInstance instance, VkPhysicalDevice devi
for (i = 0; i < lp_count; i++) for (i = 0; i < lp_count; i++)
{ {
printf(" %s (v%u) \"%s\"\n", printf(" %s (spec version %u.%u) \"%s\"\n",
lp[i].layerName, lp[i].layerName,
lp[i].specVersion >> 22, VK_VERSION_MAJOR(lp[i].specVersion),
VK_VERSION_MINOR(lp[i].specVersion),
lp[i].description); lp[i].description);
} }