mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
In progress dispatch gen
This commit is contained in:
parent
a014a5a030
commit
b06763b187
18
script/generate_dispatch.py
Normal file
18
script/generate_dispatch.py
Normal file
@ -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'])
|
Loading…
Reference in New Issue
Block a user