MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / removeAdditionalValidity

Method removeAdditionalValidity

scripts/reg.py:1560–1568  ·  view source on GitHub ↗
(self, interface, api, profile)

Source from the content-addressed store, hash-verified

1558 self.typedict[v.get('struct')].additionalValidity.append(copy.deepcopy(v))
1559
1560 def removeAdditionalValidity(self, interface, api, profile):
1561 # Loop over all usage inside all <remove> tags.
1562 for feature in interface.findall('remove'):
1563 if matchAPIProfile(api, profile, feature):
1564 for v in feature.findall('usage'):
1565 if v.get('command'):
1566 self.cmddict[v.get('command')].removedValidity.append(copy.deepcopy(v))
1567 if v.get('struct'):
1568 self.typedict[v.get('struct')].removedValidity.append(copy.deepcopy(v))
1569
1570 def generateFeature(self, fname, ftype, dictionary, explicit=False):
1571 """Generate a single type / enum group / enum / command,

Callers 1

apiGenMethod · 0.95

Calls 3

matchAPIProfileFunction · 0.85
appendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected