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