From 53231a96c0a69f03fd8a4d8770662df570ef9504 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Thu, 10 Jun 2021 16:19:21 -0600 Subject: vulkaninfo: Improve formatting of surface caps VkSurfaceCapabilities has the width & height way out to the right while the rest of the structure doesn't. This makes it look inconsistent. This PR also changes the layout of the flag and flagbit printers to return earlier if possible. Change-Id: I1b478838b3c95e33354d3daf13040e891454324e --- vulkaninfo/vulkaninfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vulkaninfo/vulkaninfo.cpp') diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 63b78ba6..a4face92 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -155,8 +155,9 @@ void DumpPresentModes(Printer &p, AppSurface &surface) { void DumpSurfaceCapabilities(Printer &p, AppInstance &inst, AppGpu &gpu, AppSurface &surface) { auto &surf_cap = surface.surface_capabilities; - p.SetSubHeader(); + p.SetSubHeader().SetIgnoreMinWidth(); DumpVkSurfaceCapabilitiesKHR(p, "VkSurfaceCapabilitiesKHR", surf_cap); + p.UnsetIgnoreMinWidth(); if (inst.CheckExtensionEnabled(VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME)) { p.SetSubHeader(); -- cgit v1.2.3