mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:49:47 +00:00
winevulkan: Fix handling enums in needs_alignment.
This commit is contained in:
parent
0a2bffa74a
commit
82182a11af
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue