From 12ea9f470053e7c9ba2987ce8cf353bbe60ec62e Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Tue, 17 Dec 2024 13:04:34 -0600 Subject: [PATCH] wineopenxr: Fix native Vk functions prototyping for Wine 10. --- wineopenxr/openxr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wineopenxr/openxr.c b/wineopenxr/openxr.c index 06942ad8..802538bc 100644 --- a/wineopenxr/openxr.c +++ b/wineopenxr/openxr.c @@ -24,8 +24,15 @@ #undef __cdecl #define XR_USE_GRAPHICS_API_OPENGL 1 #define XR_USE_GRAPHICS_API_VULKAN 1 -#define WINE_VK_HOST + +#define WINE_UNIX_LIB #include "wine/vulkan.h" +PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(VkDevice device, const char *pName); +VkResult VKAPI_CALL vkCreateInstance(const VkInstanceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkInstance *pInstance); +void VKAPI_CALL vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks *pAllocator); +void VKAPI_CALL vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties *pProperties); +#undef WINE_UNIX_LIB + #define VULKAN_H_ 1// tell dxvk-interop not to include vulkan.h #include "dxvk-interop.h" #include "vkd3d-proton-interop.h"