MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / testVulkanObjectWithVideoSC

Function testVulkanObjectWithVideoSC

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

Source from the content-addressed store, hash-verified

212 reg.apiGen()
213
214def testVulkanObjectWithVideoSC(tmp_path):
215 SetOutputDirectory(tmp_path)
216 SetOutputFileName("test_vulkan_object_with_video_sc_out.txt")
217 SetTargetApiName('vulkansc')
218 SetMergedApiNames('vulkan')
219
220 generator = MyGenerator()
221 base_options = BaseGeneratorOptions(
222 videoXmlPath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'xml', 'video.xml')))
223 reg = Registry(generator, base_options)
224
225 xml_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'xml', 'vk.xml'))
226 tree = ElementTree.parse(xml_path)
227 reg.loadElementTree(tree)
228 reg.apiGen()

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