vulkan: use dynamic loading

If Vulkan ist not available on a system the program will still run,
and it will fallback to opengl.
This commit is contained in:
niki
2022-09-13 14:11:24 +02:00
parent fb44ddb546
commit 6a2d1a9edd
4 changed files with 25 additions and 132 deletions
@@ -1,14 +1,6 @@
#pragma once
#include "common/config.h"
#ifdef LOVE_ANDROID
#include "volk.h"
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
#else
#include <vulkan/vulkan.h>
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
#endif
#include "vk_mem_alloc.h"