KhronosGroup / Vulkan-Tools

Vulkan Development Tools
Apache License 2.0
361 stars 153 forks source link

vulkaninfo: Add --show-promoted-structs option #999

Closed charles-lunarg closed 3 weeks ago

charles-lunarg commented 2 months ago

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.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build queued with queue ID 202612.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build queued with queue ID 202612.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build # 1469 running.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build queued with queue ID 202624.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build # 1470 running.

ci-tester-lunarg commented 2 months ago

CI Vulkan-Tools build # 1470 passed.

ci-tester-lunarg commented 3 weeks ago

CI Vulkan-Tools build queued with queue ID 239999.

ci-tester-lunarg commented 3 weeks ago

CI Vulkan-Tools build # 1505 running.

ci-tester-lunarg commented 3 weeks ago

CI Vulkan-Tools build # 1505 passed.