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

Method getHandleParent

scripts/generator.py:1242–1255  ·  view source on GitHub ↗

Get the parent of a handle object.

(self, typename)

Source from the content-addressed store, hash-verified

1240 return max(lengths)
1241
1242 def getHandleParent(self, typename):
1243 """Get the parent of a handle object."""
1244 if self.registry is None:
1245 raise MissingRegistryError()
1246
1247 info = self.registry.typedict.get(typename)
1248 if info is None:
1249 return None
1250
1251 elem = info.elem
1252 if elem is not None:
1253 return elem.get('parent')
1254
1255 return None
1256
1257 def iterateHandleAncestors(self, typename):
1258 """Iterate through the ancestors of a handle type."""

Callers 3

Calls 2

getMethod · 0.45

Tested by

no test coverage detected