diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2018-06-13 11:32:29 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2018-06-13 11:41:18 -0600 |
| commit | 9912207f3a9bf9d2039709a09bbdb0b070683555 (patch) | |
| tree | b52dc5112d0f7272095fc676bb884f5c0187605e /scripts | |
| parent | b1e385d1a1ff59c97901f541973b08f7c8b61f6c (diff) | |
| download | usermoji-9912207f3a9bf9d2039709a09bbdb0b070683555.tar.xz | |
icd: Update for changes in 1.1.75 registry
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/helper_file_generator.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py index c1b5176f..003e7a51 100644 --- a/scripts/helper_file_generator.py +++ b/scripts/helper_file_generator.py @@ -224,15 +224,6 @@ class HelperFileOutputGenerator(OutputGenerator): self.structNames.append(name) self.genStruct(typeinfo, name, alias) # - # Generate a VkStructureType based on a structure typename - def genVkStructureType(self, typename): - # Add underscore between lowercase then uppercase - value = re.sub('([a-z0-9])([A-Z])', r'\1_\2', typename) - # Change to uppercase - value = value.upper() - # Add STRUCTURE_TYPE_ - return re.sub('VK_', 'VK_STRUCTURE_TYPE_', value) - # # Check if the parameter passed in is a pointer def paramIsPointer(self, param): ispointer = False @@ -351,10 +342,8 @@ class HelperFileOutputGenerator(OutputGenerator): result = re.search(r'VK_STRUCTURE_TYPE_\w+', rawXml) if result: value = result.group(0) - else: - value = self.genVkStructureType(typeName) - # Store the required type value - self.structTypes[typeName] = self.StructType(name=name, value=value) + # Store the required type value + self.structTypes[typeName] = self.StructType(name=name, value=value) # Store pointer/array/string info isstaticarray = self.paramIsStaticArray(member) membersInfo.append(self.CommandParam(type=type, |
