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

Method assignAdditionalValidity

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

Source from the content-addressed store, hash-verified

1548 self.markRequired(featurename, feature, False)
1549
1550 def assignAdditionalValidity(self, interface, api, profile):
1551 # Loop over all usage inside all <require> tags.
1552 for feature in interface.findall('require'):
1553 if matchAPIProfile(api, profile, feature):
1554 for v in feature.findall('usage'):
1555 if v.get('command'):
1556 self.cmddict[v.get('command')].additionalValidity.append(copy.deepcopy(v))
1557 if v.get('struct'):
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.

Callers 1

apiGenMethod · 0.95

Calls 3

matchAPIProfileFunction · 0.85
appendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected