winevulkan: Use DECLSPEC_ALIGN instead of pshpack4.h.
This commit is contained in:
parent
df8fc0b33b
commit
f664af0bca
2 changed files with 257 additions and 261 deletions
File diff suppressed because it is too large
Load diff
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue