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):
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():
......
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