ci: Add armeabi-v7a to CI

closes #140
This commit is contained in:
Juan Ramos 2023-10-05 17:12:11 -06:00 committed by Juan Ramos
parent 881049b977
commit d7418625d9
4 changed files with 29 additions and 10 deletions

View file

@ -10,20 +10,29 @@
#include <vulkan/utility/vk_dispatch_table.h>
// Only exists so that local_vkGetDeviceProcAddr can return a 'real' function pointer
inline void empty_func() {}
inline VKAPI_ATTR void empty_func() {}
inline PFN_vkVoidFunction local_vkGetInstanceProcAddr(VkInstance instance, const char *pName) {
if (instance == VK_NULL_HANDLE) return NULL;
inline VKAPI_ATTR PFN_vkVoidFunction local_vkGetInstanceProcAddr(VkInstance instance, const char *pName) {
if (instance == VK_NULL_HANDLE) {
return NULL;
}
if (strcmp(pName, "vkGetInstanceProcAddr")) return reinterpret_cast<PFN_vkVoidFunction>(&local_vkGetInstanceProcAddr);
if (strcmp(pName, "vkGetInstanceProcAddr")) {
return reinterpret_cast<PFN_vkVoidFunction>(&local_vkGetInstanceProcAddr);
}
return reinterpret_cast<PFN_vkVoidFunction>(&empty_func);
}
inline PFN_vkVoidFunction local_vkGetDeviceProcAddr(VkDevice device, const char *pName) {
if (device == VK_NULL_HANDLE) return NULL;
inline VKAPI_ATTR PFN_vkVoidFunction local_vkGetDeviceProcAddr(VkDevice device, const char *pName) {
if (device == VK_NULL_HANDLE) {
return NULL;
}
if (strcmp(pName, "vkGetDeviceProcAddr")) {
return reinterpret_cast<PFN_vkVoidFunction>(&local_vkGetDeviceProcAddr);
}
if (strcmp(pName, "vkGetDeviceProcAddr")) return reinterpret_cast<PFN_vkVoidFunction>(&local_vkGetDeviceProcAddr);
return reinterpret_cast<PFN_vkVoidFunction>(&empty_func);
}