aboutsummaryrefslogtreecommitdiff
path: root/vulkaninfo
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2020-06-18 16:46:20 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2020-06-19 09:26:44 -0600
commit2273fe94f0b07ec57fd61dfe895424b4e6d48846 (patch)
tree3186707bbad6193d89e4fbb117a6d59f65110c57 /vulkaninfo
parent9d7880c7a07598cca8fb80b74bfee933e852f445 (diff)
downloadusermoji-2273fe94f0b07ec57fd61dfe895424b4e6d48846.tar.xz
vulkaninfo: fix output style for memory types
Made the 'usable for' auto expand in html as well. Change-Id: I97d22fc6b8f603be314e13b46fe675a199c8b7eb
Diffstat (limited to 'vulkaninfo')
-rw-r--r--vulkaninfo/vulkaninfo.cpp3
1 files changed, 2 insertions, 1 deletions
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<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;