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

Function testVulkanObjectWithVideo

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

Source from the content-addressed store, hash-verified

179 reg.apiGen()
180
181def testVulkanObjectWithVideo(tmp_path):
182 SetOutputDirectory(tmp_path)
183 SetOutputFileName("test_vulkan_object_with_video_out.txt")
184 SetTargetApiName('vulkan')
185 SetMergedApiNames(None)
186
187 generator = MyGenerator()
188 base_options = BaseGeneratorOptions(
189 videoXmlPath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'xml', 'video.xml')))
190 reg = Registry(generator, base_options)
191
192 xml_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'xml', 'vk.xml'))
193 tree = ElementTree.parse(xml_path)
194 reg.loadElementTree(tree)
195
196 reg.apiGen()
197
198
199def testVulkanObjectSC(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