Vulkan-Tools
Vulkan-Tools copied to clipboard
vulkaninfo: Add --show-all-structs option
This option restores behavior which will query all structs regardless of whether they were promoted or replaced by another struct. For example, VkPhysicalDeviceVulkan12Features contains all of the features that VkPhysicalDeviceVulkanMemoryModelFeatures does, so only the former needs to be output. However, some users will want both structs present regardless and the --show-all-structs option allows that behavior.
This commit also removes redundant checks when iterating the pNext chains while printing, as those same checks occur when the chain is being created, removing duplicate code-gen and runtime checks.