Make vk_allocator a singleton

This commit is contained in:
Patrick Nicolas
2024-02-07 18:25:54 +01:00
parent 595d27f8dc
commit df394ec079
15 changed files with 163 additions and 96 deletions
+2
View File
@@ -22,6 +22,7 @@
#include <vulkan/vulkan.hpp>
#include <fastgltf/types.hpp>
#include <fastgltf/tools.hpp>
#include "application.h"
#include "vk/allocation.h"
#include "utils/alignment.h"
@@ -117,6 +118,7 @@ public:
buffer_allocation copy_to_gpu()
{
buffer_allocation gpu_buffer{
application::get_device(),
vk::BufferCreateInfo{
.size = bytes.size(),
.usage = usage},