aboutsummaryrefslogtreecommitdiff
path: root/scripts/common_codegen.py
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2019-10-17 16:21:45 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2020-02-12 16:00:18 -0700
commitdb0a1553991d3d00ee58a7c0de3510ca1415eb75 (patch)
tree1a8dce2be39faf43be853a28c89ce3537701a988 /scripts/common_codegen.py
parent45b9d01815d916a61c66c0c178aad132e19ada47 (diff)
downloadusermoji-db0a1553991d3d00ee58a7c0de3510ca1415eb75.tar.xz
vulkaninfo: new vkconfig_output backdend
This commit adds a new backend, vkconfig_output, that prints the same information as the text & html versions in a json format. This output will only be used in vkconfig. Therefore it does not have a documented flag, but it is accesible with '--vkconfig_output'. Many parts of the code needed refactoring to handle the vkconfig_output output. Replacing PrintElement with PrintString, requiring StartObject instead of StartArray, and removing many branches to make the code simpler to read. vkconfig_output does not nest json objects within json arrays, thus keeping every non-leaf node of a json object named. files modified - scripts/vulkaninfo_generator.py - vulkaninfo/generated/vulkaninfo.hpp - vulkaninfo/outputprinter.h - vulkaninfo/vulkaninfo.cpp - vulkaninfo/vulkaninfo.h Change-Id: I33d036a75b65942db1ad62b2a1e0c341a2b5e36c
Diffstat (limited to 'scripts/common_codegen.py')
0 files changed, 0 insertions, 0 deletions