aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/reg.py
diff options
context:
space:
mode:
authorJon Leech <[email protected]>2024-12-19 21:42:01 -0800
committerJon Leech <[email protected]>2024-12-19 21:43:52 -0800
commitd4a196d8c84e032d27f999adcea3075517c1c97f (patch)
treec6903fd6fcbd653f5782f63a05e4618d7b0665ff /registry/reg.py
parent6a74a7d65cafa19e38ec116651436cce6efd5b2e (diff)
downloadVulkan-Headers-main.tar.gz
Vulkan-Headers-main.zip
Update for Vulkan-Docs 1.4.304HEADv1.4.304main
Diffstat (limited to 'registry/reg.py')
-rw-r--r--registry/reg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/reg.py b/registry/reg.py
index 2d51f1f..30a661a 100644
--- a/registry/reg.py
+++ b/registry/reg.py
@@ -134,8 +134,10 @@ def mergeAPIs(tree, fromApiNames, toApiName):
definitionName = child.get('name')
definitionVariants = parent.findall(f"{child.tag}[@name='{definitionName}']")
elif child.tag in ['require']:
- definitionName = child.get('feature')
- definitionVariants = parent.findall(f"{child.tag}[@feature='{definitionName}']")
+ # No way to correlate require tags because they do not have a definite identifier in the way they
+ # are used in the latest forms of the XML so the best we can do is simply enable all of them
+ if child.get('api') in fromApiNames:
+ child.set('api', toApiName)
elif child.tag in ['command']:
definitionName = child.find('proto/name').text
definitionVariants = parent.findall(f"{child.tag}/proto/name[.='{definitionName}']/../..")