summaryrefslogtreecommitdiffstats
path: root/src/vksetup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vksetup.h')
-rw-r--r--src/vksetup.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vksetup.h b/src/vksetup.h
index 273a785..608975b 100644
--- a/src/vksetup.h
+++ b/src/vksetup.h
@@ -47,6 +47,10 @@
#include <shaderc/shaderc.h>
+#define VMA_STATIC_VULKAN_FUNCTIONS 0
+#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
+#include "vk_mem_alloc.h"
+
#include "../lib/cglm/include/cglm/cglm.h"
#define VK_ARRAY_LEN(arr) sizeof((arr))/sizeof((arr)[0])
@@ -192,6 +196,8 @@ typedef struct vks_context {
vks_image color_image;
vks_image depth_image;
+ VmaAllocator allocator;
+
VkSampleCountFlagBits msaa_samples;
} vks_context;