winevulkan: Fix handling enums in needs_alignment.

This commit is contained in:
Georg Lehmann 2022-11-10 23:40:54 +01:00 committed by Alexandre Julliard
parent 0a2bffa74a
commit 82182a11af

View file

@ -1168,6 +1168,9 @@ class VkVariable(object):
def is_bitmask(self):
return self.type_info["category"] == "bitmask"
def is_enum(self):
return self.type_info["category"] == "enum"
def is_dynamic_array(self):
""" Returns if the member is an array element.
Vulkan uses this for dynamically sized arrays for which
@ -1202,6 +1205,8 @@ class VkVariable(object):
return True
elif self.is_bitmask():
return self.type_info["data"].type == "VkFlags64"
elif self.is_enum():
return self.type_info["data"].bitwidth == 64
elif self.is_struct() or self.is_union():
return self.type_info["data"].needs_alignment()
elif self.is_handle():