diff options
| author | Charles Giessen <charles@lunarg.com> | 2021-06-14 15:30:37 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2021-06-16 09:33:45 -0600 |
| commit | ec76459d6fdf587ea97f2be6dc7f76a96bcbb03b (patch) | |
| tree | 0524a20937ef5f9ed28a3d3ad7cfae07f7fac0c7 /scripts/vulkaninfo_generator.py | |
| parent | 02897e9cb6157613190ec214425d04fa10112525 (diff) | |
| download | usermoji-ec76459d6fdf587ea97f2be6dc7f76a96bcbb03b.tar.xz | |
vulkaninfo: Dont print None in vkconfig output
vkconfig prints arrays as it finds them, even if there is only a "None"
element in it. This commit prevents this element from being printed,
removing confusing results where there is a `count = 1` but contains "None".
Change-Id: I1ef8c63458728a9fd3dc531dc9983f309c851034
Diffstat (limited to 'scripts/vulkaninfo_generator.py')
| -rw-r--r-- | scripts/vulkaninfo_generator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index dfa2e0e7..4bec23f3 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -456,7 +456,8 @@ def PrintFlags(bitmask, name): out += " if (p.Type() == OutputType::json) { p.PrintKeyValue(name, value); return; }\n" out += " if (static_cast<" + bitmask.name + ">(value) == 0) {\n" out += " ArrayWrapper arr(p, name, 0);\n" - out += " p.SetAsType().PrintString(\"None\");\n" + out += " if (p.Type() != OutputType::vkconfig_output)\n" + out += " p.SetAsType().PrintString(\"None\");\n" out += " return;\n" out += " }\n" out += " auto strings = " + bitmask.name + \ |
