Skip to content

Commit

Permalink
Fix base_generator vendorTags logic
Browse files Browse the repository at this point in the history
The logic didn't correctly iterate through the children of tags,
causing the vendorTags list to be generated incorrectly.
  • Loading branch information
charles-lunarg committed Oct 3, 2023
1 parent 87a8309 commit 2d58e9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/generators/base_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def beginFile(self, genOpts):
for platform in self.registry.tree.findall('platforms/platform'):
self.vk.platforms[platform.get('name')] = platform.get('protect')

for tag in self.registry.tree.findall('tags'):
self.vk.vendorTags.append(tag.get('name'))
for tags in self.registry.tree.findall('tags'):
for tag in tags.findall('tag'):
self.vk.vendorTags.append(tag.get('name'))

# No way known to get this from the XML
self.vk.queueBits[Queues.TRANSFER] = 'VK_QUEUE_TRANSFER_BIT'
Expand Down

0 comments on commit 2d58e9f

Please sign in to comment.