vulkaninfo: fix output style for memory types
authorCharles Giessen <charles@lunarg.com>
Thu, 18 Jun 2020 22:46:20 +0000 (16:46 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 19 Jun 2020 15:26:44 +0000 (09:26 -0600)
Made the 'usable for' auto expand in html as well.

Change-Id: I97d22fc6b8f603be314e13b46fe675a199c8b7eb

vulkaninfo/vulkaninfo.cpp

index 68d4131..9fc13ce 100644 (file)
@@ -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<VkFormat> tiling_optimal_formats;
             std::vector<VkFormat> 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;