diff options
| author | Charles Giessen <charles@lunarg.com> | 2023-02-24 15:29:00 -0700 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-02-24 17:05:55 -0700 |
| commit | ace02ca84b697d54bf742c9f80ee5fc0ca19c69e (patch) | |
| tree | 0605c7efe56df4166d9b9ebc6519d1c7ff8ec0a8 /scripts/vulkaninfo_generator.py | |
| parent | 1a66f59f23ac2e45af4e38ee49c711df022a8f22 (diff) | |
| download | usermoji-ace02ca84b697d54bf742c9f80ee5fc0ca19c69e.tar.xz | |
vulkaninfo: Fix wrong stripping in flag strings
The QUEUE_OPTICAL_FLOW_BIT_NV was getting the 'V' cut off of it, this commit
fixes that so that it isn't being removed, as well as making the output
more consistent.
Diffstat (limited to 'scripts/vulkaninfo_generator.py')
| -rw-r--r-- | scripts/vulkaninfo_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index 0834a2ae..cea74909 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -500,7 +500,7 @@ def PrintBitMaskToString(bitmask, name, gen): for v in bitmask.options: out += f" if ({v.name} & value) {{\n" out += f' if (is_first) {{ is_first = false; }} else {{ out += " | "; }}\n' - out += f' out += "{str(v.name).strip("VK_").strip("_BIT")}";\n' + out += f' out += "{str(v.name)[3:]}";\n' out += f" }}\n" out += f" return out;\n" out += f"}}\n" |
