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

Method mapInterfaces

scripts/scriptgenerator.py:121–138  ·  view source on GitHub ↗

Construct reverse mapping of APIs to features requiring them in self.apimap. - feature - name of the feature being generated

(self, feature)

Source from the content-addressed store, hash-verified

119 self.addInterfaceMapping(api, feature, required)
120
121 def mapInterfaces(self, feature):
122 """Construct reverse mapping of APIs to features requiring them in
123 self.apimap.
124
125 - feature - name of the feature being generated"""
126
127 # Map each category of interface
128 self.mapInterfaceKeys(feature, 'basetype')
129 self.mapInterfaceKeys(feature, 'bitmask')
130 self.mapInterfaceKeys(feature, 'command')
131 self.mapInterfaceKeys(feature, 'define')
132 self.mapInterfaceKeys(feature, 'enum')
133 self.mapInterfaceKeys(feature, 'enumconstant')
134 self.mapInterfaceKeys(feature, 'funcpointer')
135 self.mapInterfaceKeys(feature, 'handle')
136 self.mapInterfaceKeys(feature, 'include')
137 self.mapInterfaceKeys(feature, 'struct')
138 self.mapInterfaceKeys(feature, 'union')
139
140 def endFile(self):
141 super().endFile()

Callers 3

endFileMethod · 0.80
endFileMethod · 0.80
endFileMethod · 0.80

Calls 1

mapInterfaceKeysMethod · 0.95

Tested by

no test coverage detected