diff options
| author | Chia-I Wu <olv@lunarg.com> | 2015-10-26 18:48:24 +0800 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-10-30 20:49:23 +0800 |
| commit | 5b0edb1ca79033880cb6e3ba3ce2399a8cd78e4f (patch) | |
| tree | 363bfa6e729961c6f7a5f984e5ddfe3f39364e63 /vulkan.py | |
| parent | a01ef6e119ff809adac2f5ad2a0ba7820d563a16 (diff) | |
| download | usermoji-5b0edb1ca79033880cb6e3ba3ce2399a8cd78e4f.tar.xz | |
vulkan.py: fix vulkan.h parsing
Ignore PFN_vkVoidFunction typedef. Fix layer dispatch table output.
Diffstat (limited to 'vulkan.py')
| -rwxr-xr-x | vulkan.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1158,6 +1158,9 @@ def parse_vk_h(filename): # extract the object type object_lines.append(line[begin:end]) if line.startswith("typedef") and line.endswith(");"): + if "*PFN_vkVoidFunction" in line: + continue + # drop leading "typedef " and trailing ");" proto_lines.append(line[8:-2]) @@ -1202,7 +1205,7 @@ def parse_vk_h(filename): print("typedef struct VkLayerDispatchTable_") print("{") for proto in ext.protos: - print(" vk%sType %s;" % (proto.name, proto.name)) + print(" PFN_vk%s %s;" % (proto.name, proto.name)) print("} VkLayerDispatchTable;") if __name__ == "__main__": |
