You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the body of terminator_CreateAndroidSurfaceKHR() should be modified to comply with the right signature.
In addition terminator_CreateAndroidSurfaceKHR() should be declared in wsi.h
The text was updated successfully, but these errors were encountered:
This loader does not compile for Android and is not intended to compile for Android. Android systems have a separate loader, maintained by Google, which they package with Android distributions. I'm not sure exactly where you would find that loader, but I would recommend looking through the Android Vulkan documentation. I'm closing this issue because Android is unsupported by this repo.
I tried to compile it as part of the Angle project , and it failed for Android.
I am using my own cmake files to compile Angle with the Vulkan backend.
Android is not my main objective in this specific project , just reported what I saw.
Other platforms were compiled smoothly.
Thanks for your feedback.
Hi
There is a mismatch in the function signatures causing compilation failure while compiling for Android ,at least for me :).
The type definition of the API can be found in the link below.
https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_android.h
typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
The wrong signatures of the API's can found in the link below .
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/loader/wsi.c
LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(VkInstance instance, ANativeWindow *window,const VkAllocationCallbacks *pAllocator,VkSurfaceKHR *pSurface)
VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateAndroidSurfaceKHR(VkInstance instance, Window window,const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)
I guess the body of
terminator_CreateAndroidSurfaceKHR()
should be modified to comply with the right signature.In addition
terminator_CreateAndroidSurfaceKHR()
should be declared in wsi.hThe text was updated successfully, but these errors were encountered: