[PATCH] winevulkan: Add support for the uint16_t type in make_vulkan.
Derek Lesho
dlesho at codeweavers.com
Wed Oct 30 14:55:48 CDT 2019
Vulkan headers use this type as of Vulkan 1.1.117, due to the
inclusion of VK_EXT_line_rasterization.
Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
---
dlls/winevulkan/make_vulkan | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/winevulkan/make_vulkan b/dlls/winevulkan/make_vulkan
index 8e043538c8..2af98fbd6f 100755
--- a/dlls/winevulkan/make_vulkan
+++ b/dlls/winevulkan/make_vulkan
@@ -1312,8 +1312,10 @@ class VkParam(object):
elif self.type == "size_t":
self.format_str = "0x%s"
self.format_conv = "wine_dbgstr_longlong({0})"
- elif self.type in ["uint32_t", "VkBool32"]:
+ elif self.type in ["uint32_t", "VkBool32", "uint16_t"]:
self.format_str = "%u"
+ if self.type == "uint16_t":
+ self.format_conv = "(unsigned int){0}"
elif self.type in ["uint64_t", "VkDeviceSize"]:
self.format_str = "0x%s"
self.format_conv = "wine_dbgstr_longlong({0})"
@@ -1501,7 +1503,7 @@ class VkParam(object):
return "int64"
if self.type == "float":
return "float"
- if self.type in ["int", "int32_t", "size_t", "uint32_t", "VkBool32"]:
+ if self.type in ["int", "int32_t", "size_t", "uint32_t", "VkBool32", "uint16_t"]:
return "long"
if self.type in ["uint64_t", "VkDeviceSize"]:
return "int64"
--
2.23.0
More information about the wine-devel
mailing list