vulkaninfo: Add Driver Version handling
authorCharles Giessen <charles@lunarg.com>
Thu, 27 Oct 2022 20:14:27 +0000 (14:14 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 28 Oct 2022 23:43:29 +0000 (17:43 -0600)
commit292e6ed02141b015950d03390c6e8576b0673ef6
tree1acd4b4783a3b1f9bfb9f51d2bf8cad4bbf8270c
parentc09f4a4ee47174117e4cad075ae59ce25612fe45
vulkaninfo: Add Driver Version handling

Previously, driverVersion fields were treated as hex values, when in
reality each vendor has their own specific format. This commit adds
parsers for Nvidia, Intel (windows only), and relies on the Vulkan
API format for everyone else. AMD uses the Vulkan API format. This
change applies only to the summary, text, and html output.

Add ostream<< operators for VulkanVersion and VkConformanceVersion,
rather than having bespoke to_string functions.

When printing versions, use the major.minor.patch as the primary output
and put the uint32_t form of the version in parenthesis. This moves the
more useful version info into the spotlight, putting the less useful in
parenthesis.

Rework the way secondary values (stuff in parenthesis after a value)
are printed.
vulkaninfo/outputprinter.h
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h