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

Method getMaxCParamTypeLength

scripts/generator.py:1233–1240  ·  view source on GitHub ↗

Return the length of the longest type field for a member/parameter. - info - TypeInfo or CommandInfo.

(self, info)

Source from the content-addressed store, hash-verified

1231 return newLen
1232
1233 def getMaxCParamTypeLength(self, info):
1234 """Return the length of the longest type field for a member/parameter.
1235
1236 - info - TypeInfo or CommandInfo.
1237 """
1238 lengths = (self.getCParamTypeLength(member)
1239 for member in info.getMembers())
1240 return max(lengths)
1241
1242 def getHandleParent(self, typename):
1243 """Get the parent of a handle object."""

Callers 2

genStructBodyMethod · 0.80
genStructMethod · 0.80

Calls 2

getCParamTypeLengthMethod · 0.95
getMembersMethod · 0.80

Tested by

no test coverage detected