From 2273fe94f0b07ec57fd61dfe895424b4e6d48846 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Thu, 18 Jun 2020 16:46:20 -0600 Subject: vulkaninfo: fix output style for memory types Made the 'usable for' auto expand in html as well. Change-Id: I97d22fc6b8f603be314e13b46fe675a199c8b7eb --- 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 68d4131e..9fc13cec 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -459,13 +459,14 @@ void GpuDumpMemoryProps(Printer &p, AppGpu &gpu) { auto flags = gpu.memory_props.memoryTypes[i].propertyFlags; DumpVkMemoryPropertyFlags(p, "propertyFlags = " + to_hex_str(flags), flags); - ArrayWrapper arr(p, "usable for", -1); + ObjectWrapper usable_for(p, "usable for"); const uint32_t memtype_bit = 1U << i; // only linear and optimal tiling considered std::vector tiling_optimal_formats; std::vector tiling_linear_formats; for (auto &image_tiling : gpu.memory_image_support_types) { + p.SetOpenDetails(); ArrayWrapper arr(p, VkImageTilingString(VkImageTiling(image_tiling.tiling)), -1); bool has_any_support_types = false; bool regular = false; -- cgit v1.2.3