From 31510f6e21092ab169e460a28c63d2c0d6d5d223 Mon Sep 17 00:00:00 2001 From: KreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com> Date: Thu, 4 Jul 2024 19:23:45 -0300 Subject: [PATCH] [VULKAN] Add Wrapped VK_KHR_android_surface (#1643) --- src/wrapped/generated/functions_list.txt | 1 + src/wrapped/generated/wrappedvulkantypes.h | 1 + src/wrapped/wrappedvulkan.c | 1 + src/wrapped/wrappedvulkan_private.h | 3 +++ 4 files changed, 6 insertions(+) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index ee5df6489..f20d21dd7 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -5619,6 +5619,7 @@ wrappedvulkan: - vkAllocateMemory - vkCreateAccelerationStructureKHR - vkCreateAccelerationStructureNV + - vkCreateAndroidSurfaceKHR - vkCreateBuffer - vkCreateBufferView - vkCreateCommandPool diff --git a/src/wrapped/generated/wrappedvulkantypes.h b/src/wrapped/generated/wrappedvulkantypes.h index c6807002c..fd7843910 100644 --- a/src/wrapped/generated/wrappedvulkantypes.h +++ b/src/wrapped/generated/wrappedvulkantypes.h @@ -84,6 +84,7 @@ typedef void (*vFpuuuupupup_t)(void*, uint32_t, uint32_t, uint32_t, uint32_t, vo GO(vkAllocateMemory, iFpppp_t) \ GO(vkCreateAccelerationStructureKHR, iFpppp_t) \ GO(vkCreateAccelerationStructureNV, iFpppp_t) \ + GO(vkCreateAndroidSurfaceKHR, iFpppp_t) \ GO(vkCreateBuffer, iFpppp_t) \ GO(vkCreateBufferView, iFpppp_t) \ GO(vkCreateCommandPool, iFpppp_t) \ diff --git a/src/wrapped/wrappedvulkan.c b/src/wrapped/wrappedvulkan.c index 68b4e66e0..82f137f2f 100644 --- a/src/wrapped/wrappedvulkan.c +++ b/src/wrapped/wrappedvulkan.c @@ -597,6 +597,7 @@ EXPORT int my_vkCreateXcbSurfaceKHR(x64emu_t* emu, void* instance, void* info, m return ret; } CREATE(vkCreateXlibSurfaceKHR) +CREATE(vkCreateAndroidSurfaceKHR) CREATE(vkCreateRenderPass2) CREATE(vkCreateRenderPass2KHR) diff --git a/src/wrapped/wrappedvulkan_private.h b/src/wrapped/wrappedvulkan_private.h index b5921b4aa..e278f0074 100644 --- a/src/wrapped/wrappedvulkan_private.h +++ b/src/wrapped/wrappedvulkan_private.h @@ -311,6 +311,9 @@ GO(vkGetPhysicalDeviceXcbPresentationSupportKHR, uFpubp) GOM(vkCreateXlibSurfaceKHR, iFEpppp) GO(vkGetPhysicalDeviceXlibPresentationSupportKHR, uFpupp) +// VK_KHR_android_surface +GOM(vkCreateAndroidSurfaceKHR, iFEpppp) + // VK_KHR_swapchain GO(vkAcquireNextImageKHR, iFpUUUUp) GO(vkAcquireNextImage2KHR, iFppp)