aboutsummaryrefslogtreecommitdiffstats
path: root/src/vk-context.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-07-09 23:45:26 +0200
committerladevieq <ladevie.quentin@gmail.com>2022-07-10 00:04:17 +0200
commitcfcb5c3212f0fce667885ff0de6fa0b9fc4b3ca8 (patch)
treed076b243e0203537d5816c9a15010723581d7f97 /src/vk-context.cpp
parent928b1b0503d2ecab09cc275e9775593a41e417cb (diff)
Improve compilation time
Diffstat (limited to 'src/vk-context.cpp')
-rw-r--r--src/vk-context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vk-context.cpp b/src/vk-context.cpp
index 53f3e59..7876d86 100644
--- a/src/vk-context.cpp
+++ b/src/vk-context.cpp
@@ -1,7 +1,8 @@
+#include "vk-context.hpp"
+
#include <iostream>
#include <cassert>
-#include "vk-context.hpp"
#include "vulkan-loader.hpp"
#define VMA_IMPLEMENTATION
@@ -163,7 +164,7 @@ void vkcontext::create_memory_allocator() {
allocator_info.device = device;
allocator_info.instance = instance;
allocator_info.flags = VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT;
-
+
vmaCreateAllocator(&allocator_info, &allocator);
}