MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / removeFeatures

Method removeFeatures

scripts/reg.py:1536–1548  ·  view source on GitHub ↗

Process ` ` tags for a ` ` or ` `. - interface - Element for ` ` or ` `, containing ` ` tags - featurename - name of the feature - api - string specifying API name being generated - profile - string specifyi

(self, interface, featurename, api, profile)

Source from the content-addressed store, hash-verified

1534
1535
1536 def removeFeatures(self, interface, featurename, api, profile):
1537 """Process `<remove>` tags for a `<version>` or `<extension>`.
1538
1539 - interface - Element for `<version>` or `<extension>`, containing
1540 `<remove>` tags
1541 - featurename - name of the feature
1542 - api - string specifying API name being generated
1543 - profile - string specifying API profile being generated"""
1544
1545 # <remove> marks things that are removed by this version/profile
1546 for feature in interface.findall('remove'):
1547 if matchAPIProfile(api, profile, feature):
1548 self.markRequired(featurename, feature, False)
1549
1550 def assignAdditionalValidity(self, interface, api, profile):
1551 # Loop over all usage inside all <require> tags.

Callers 1

apiGenMethod · 0.95

Calls 2

markRequiredMethod · 0.95
matchAPIProfileFunction · 0.85

Tested by

no test coverage detected