aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Schultz <karl@lunarg.com>2016-02-12 13:50:13 -0700
committerKarl Schultz <karl@lunarg.com>2016-02-12 13:57:51 -0700
commit10f0de282ddaf72c2f4d66634c5e1b1e7276174c (patch)
treeab8ee5c9b7134a425d18b569a205dbf8bc5e7586
parent0500777d22dac117fe0e582756dac85790de17be (diff)
downloadusermoji-10f0de282ddaf72c2f4d66634c5e1b1e7276174c.tar.xz
codegen: Add special case for DebugReportCallback inconsistency
-rwxr-xr-xvk_helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/vk_helper.py b/vk_helper.py
index 2b67c419..d0a11f13 100755
--- a/vk_helper.py
+++ b/vk_helper.py
@@ -383,6 +383,9 @@ def recreate_structs():
# TODO: Fix construction of struct name
def get_struct_name_from_struct_type(struct_type):
# Note: All struct types are now camel-case
+ # Debug Report has an inconsistency - so need special case.
+ if ("VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT" == struct_type):
+ return "VkDebugReportCallbackCreateInfoEXT"
caps_struct_name = struct_type.replace("_STRUCTURE_TYPE", "")
char_idx = 0
struct_name = ''