Commit 9058f5e0 authored by Liam Middlebrook's avatar Liam Middlebrook Committed by Alexandre Julliard

winevulkan: Support functions with basic_c return types.

Needed for VK_KHR_buffer_device_address which uses uint64_t as a return type. Signed-off-by: 's avatarLiam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: 's avatarPiers Daniell <pdaniell@nvidia.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d82a2683
......@@ -2845,6 +2845,7 @@ class VkRegistry(object):
for t in types:
type_info = {}
type_info["category"] = t.attrib.get("category", None)
type_info["requires"] = t.attrib.get("requires", None)
# We parse aliases in a second pass when we know more.
alias = t.attrib.get("alias")
......@@ -2863,13 +2864,19 @@ class VkRegistry(object):
base_types.append(basetype)
type_info["data"] = basetype
# Basic C types don't need us to define them, but we do need data for them
if type_info["requires"] == "vk_platform":
requires = type_info["requires"]
basic_c = VkBaseType(name, _type, requires=requires)
type_info["data"] = basic_c
if type_info["category"] == "bitmask":
name = t.find("name").text
_type = t.find("type").text
# Most bitmasks have a requires attribute used to pull in
# required '*FlagBits" enum.
requires = t.attrib.get("requires")
requires = type_info["requires"]
bitmask = VkBaseType(name, _type, requires=requires)
bitmasks.append(bitmask)
type_info["data"] = bitmask
......
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