vulkan: fix android build

It compiles now, but it's not working correctly yet
This commit is contained in:
niki
2022-08-20 19:38:59 +02:00
parent 3e762c9772
commit 23666b1fde
14 changed files with 4187 additions and 20 deletions
+10 -2
View File
@@ -10,7 +10,7 @@
#include <common/config.h>
// libraries
#include <vulkan/vulkan.h>
#include "VulkanWrapper.h"
#include "vk_mem_alloc.h"
#include "libraries/xxHash/xxhash.h"
@@ -19,6 +19,7 @@
#include <iostream>
#include <memory>
#include <functional>
#include <dlfcn.h>
namespace love {
@@ -121,7 +122,14 @@ struct SwapChainSupportDetails {
class Graphics final : public love::graphics::Graphics {
public:
Graphics() = default;
Graphics() {
#ifdef LOVE_ANDROID
auto result = volkInitialize();
if (result != VK_SUCCESS) {
throw love::Exception("could not initialize volk");
}
#endif
}
virtual ~Graphics();