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

Function testVulkanObject

scripts/test_vulkan_object.py:166–179  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

164 assert isinstance(constant, Constant)
165
166def testVulkanObject(tmp_path):
167 SetOutputDirectory(tmp_path)
168 SetOutputFileName("test_vulkan_object_out.txt")
169 SetTargetApiName('vulkan')
170 SetMergedApiNames(None)
171
172 generator = MyGenerator()
173 base_options = BaseGeneratorOptions()
174 reg = Registry(generator, base_options)
175
176 xml_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'xml', 'vk.xml'))
177 tree = ElementTree.parse(xml_path)
178 reg.loadElementTree(tree)
179 reg.apiGen()
180
181def testVulkanObjectWithVideo(tmp_path):
182 SetOutputDirectory(tmp_path)

Callers

nothing calls this directly

Calls 10

loadElementTreeMethod · 0.95
apiGenMethod · 0.95
RegistryClass · 0.90
SetOutputDirectoryFunction · 0.85
SetOutputFileNameFunction · 0.85
SetTargetApiNameFunction · 0.85
SetMergedApiNamesFunction · 0.85
MyGeneratorClass · 0.70
parseMethod · 0.45

Tested by

no test coverage detected