Skip to content

Commit

Permalink
Fix glfwinfo output of Vulkan layer spec version
Browse files Browse the repository at this point in the history
  • Loading branch information
elmindreda committed Mar 31, 2023
1 parent 6f2d706 commit f27daa3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/glfwinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ static void list_vulkan_instance_layers(void)

for (uint32_t i = 0; i < lp_count; i++)
{
printf(" %s (spec version %u) \"%s\"\n",
printf(" %s (spec version %u.%u) \"%s\"\n",
lp[i].layerName,
lp[i].specVersion >> 22,
VK_VERSION_MAJOR(lp[i].specVersion),
VK_VERSION_MINOR(lp[i].specVersion),
lp[i].description);
}

Expand All @@ -286,9 +287,10 @@ static void list_vulkan_device_layers(VkInstance instance, VkPhysicalDevice devi

for (uint32_t i = 0; i < lp_count; i++)
{
printf(" %s (spec version %u) \"%s\"\n",
printf(" %s (spec version %u.%u) \"%s\"\n",
lp[i].layerName,
lp[i].specVersion >> 22,
VK_VERSION_MAJOR(lp[i].specVersion),
VK_VERSION_MINOR(lp[i].specVersion),
lp[i].description);
}

Expand Down

0 comments on commit f27daa3

Please sign in to comment.