Commit 82182a11 authored by Georg Lehmann's avatar Georg Lehmann Committed by Alexandre Julliard

winevulkan: Fix handling enums in needs_alignment.

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