Commit b02e18f3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winevulkan: Remove no longer needed #ifdefs from dispatch tables.

parent 8cbad5bc
......@@ -2800,14 +2800,7 @@ class VkGenerator(object):
LOGGER.debug("skipping {0} in vulkan_device_funcs".format(vk_func.name))
continue
if vk_func.needs_conversion():
f.write("#if defined(USE_STRUCT_CONVERSION)\n")
f.write(" {0};\n".format(vk_func.pfn(conv=True)))
f.write("#else\n")
f.write(" {0};\n".format(vk_func.pfn(conv=False)))
f.write("#endif\n")
else:
f.write(" {0};\n".format(vk_func.pfn(conv=False)))
f.write(" {0};\n".format(vk_func.pfn(conv=vk_func.needs_conversion())))
f.write("};\n\n")
f.write("/* For use by vkInstance and children */\n")
......@@ -2820,14 +2813,7 @@ class VkGenerator(object):
LOGGER.debug("skipping {0} in vulkan_instance_funcs".format(vk_func.name))
continue
if vk_func.needs_conversion():
f.write("#if defined(USE_STRUCT_CONVERSION)\n")
f.write(" {0};\n".format(vk_func.pfn(conv=True)))
f.write("#else\n")
f.write(" {0};\n".format(vk_func.pfn(conv=False)))
f.write("#endif\n")
else:
f.write(" {0};\n".format(vk_func.pfn(conv=False)))
f.write(" {0};\n".format(vk_func.pfn(conv=vk_func.needs_conversion())))
f.write("};\n\n")
f.write("#define ALL_VK_DEVICE_FUNCS() \\\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment