1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winevulkan: Use DECLSPEC_ALIGN instead of pshpack4.h.

This commit is contained in:
Jacek Caban 2022-09-06 22:35:36 +02:00 committed by Alexandre Julliard
parent df8fc0b33b
commit f664af0bca
2 changed files with 257 additions and 261 deletions

File diff suppressed because it is too large Load diff

View file

@ -1675,6 +1675,9 @@ class VkParam(VkVariable):
proto += self.type
if is_member and self.needs_alignment():
proto += " DECLSPEC_ALIGN(8)"
if self.is_pointer():
proto += " {0}{1}".format(self.pointer, self.name)
elif is_member and self.is_static_array():
@ -3045,8 +3048,6 @@ class VkGenerator(object):
f.write(" unix_count,\n")
f.write("};\n\n")
f.write("#include \"pshpack4.h\"\n\n")
for vk_func in self.registry.funcs.values():
if not vk_func.needs_exposing():
continue
@ -3063,7 +3064,6 @@ class VkGenerator(object):
f.write(" {0} result;\n".format(vk_func.type))
f.write("};\n\n");
f.write("#include \"poppack.h\"\n\n")
f.write("#endif /* __WINE_VULKAN_LOADER_THUNKS_H */\n")
def generate_vulkan_h(self, f):