vulkaninfo: Make json output print extensions
[platform/upstream/Vulkan-Tools.git] / vulkaninfo / outputprinter.h
index 42e15e4..862e965 100644 (file)
@@ -603,6 +603,10 @@ class Printer {
                     << DecorateAsValue(std::to_string(revision)) << "</summary></details>\n";
                 break;
             case (OutputType::json):
+                ObjectStart("");
+                PrintKeyString("extensionName", ext_name);
+                PrintKeyValue("specVersion", revision);
+                ObjectEnd();
                 break;
             case (OutputType::vkconfig_output):
                 ObjectStart(ext_name);