diff options
author | Jon Leech <[email protected]> | 2024-12-19 21:42:01 -0800 |
---|---|---|
committer | Jon Leech <[email protected]> | 2024-12-19 21:43:52 -0800 |
commit | d4a196d8c84e032d27f999adcea3075517c1c97f (patch) | |
tree | c6903fd6fcbd653f5782f63a05e4618d7b0665ff /registry/reg.py | |
parent | 6a74a7d65cafa19e38ec116651436cce6efd5b2e (diff) | |
download | Vulkan-Headers-main.tar.gz Vulkan-Headers-main.zip |
Diffstat (limited to 'registry/reg.py')
-rw-r--r-- | registry/reg.py | 6 |
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}']/../..") |