From 10f0de282ddaf72c2f4d66634c5e1b1e7276174c Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Fri, 12 Feb 2016 13:50:13 -0700 Subject: codegen: Add special case for DebugReportCallback inconsistency --- vk_helper.py | 3 +++ 1 file changed, 3 insertions(+) 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 = '' -- cgit v1.2.3