From b06763b18783df1ecb2f72f13c08bd2c1f3a5993 Mon Sep 17 00:00:00 2001 From: Cody Goodson Date: Mon, 3 May 2021 18:29:53 -0500 Subject: [PATCH] In progress dispatch gen --- script/generate_dispatch.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 script/generate_dispatch.py diff --git a/script/generate_dispatch.py b/script/generate_dispatch.py new file mode 100644 index 0000000..e687b63 --- /dev/null +++ b/script/generate_dispatch.py @@ -0,0 +1,18 @@ + +#https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/master/registry/vk.xml + +import urllib.request +import xmltodict + +with urllib.request.urlopen('https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/master/registry/vk.xml') as response: + vk_xml_raw = response.read() + +vk_xml = xmltodict.parse(vk_xml_raw) + +commands = vk_xml['registry']['commands'] + +device_commands = [] + +for command in commands: + if(command['command']['proto']) + print(command['command']['proto']['name']) \ No newline at end of file