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

Function boolGet

scripts/base_generator.py:48–49  ·  view source on GitHub ↗
(elem, name)

Source from the content-addressed store, hash-verified

46 return None if elem.get(name) is None else int(elem.get(name), 0)
47
48def boolGet(elem, name) -> bool:
49 return elem.get(name) is not None and elem.get(name) == "true"
50
51def externSyncGet(elem):
52 value = elem.get('externsync')

Callers 3

beginFeatureMethod · 0.85
genCmdMethod · 0.85
genTypeMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected