diff options
| author | Charles Giessen <charles@lunarg.com> | 2019-10-21 14:43:47 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2019-12-11 09:51:45 -0700 |
| commit | af519f9685398cbb1eeb0d0bf0e400dade80871f (patch) | |
| tree | 7308fa0a9368bc9ce56da836a72a6b8c49b96afe /scripts/vulkaninfo_generator.py | |
| parent | 0dc201a808ec078ef94f556301ae8b53f720185a (diff) | |
| download | usermoji-af519f9685398cbb1eeb0d0bf0e400dade80871f.tar.xz | |
vulkaninfo: reduced spurious warnings for msvc
This commit removes several spurious wanings msvc would display,
like implicit conversions for VkBool32 to bool and several
signed/unsigned comparisons.
Change-Id: Id485c044575105ec52fd49f9f0c5881674841a8e
Diffstat (limited to 'scripts/vulkaninfo_generator.py')
| -rw-r--r-- | scripts/vulkaninfo_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index eda3ec62..aabfac9b 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -552,8 +552,8 @@ def PrintStructure(struct, structure_names, gen): out += " p.PrintElement(obj." + v.name + "[i]);\n" out += " }\n p.ArrayEnd();\n" elif v.typeID == "VkBool32": - out += " p.PrintKeyBool(\"" + v.name + "\", obj." + \ - v.name + ", " + str(max_key_len) + ");\n" + out += " p.PrintKeyBool(\"" + v.name + "\", static_cast<bool>(obj." + \ + v.name + "), " + str(max_key_len) + ");\n" elif v.typeID == "VkDeviceSize": out += " p.PrintKeyValue(\"" + v.name + "\", to_hex_str(p, obj." + \ v.name + "), " + str(max_key_len) + ");\n" |
