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
+3 -1
View File
@@ -20,7 +20,6 @@
#pragma once
#include <cassert>
#include <concepts>
template<typename T>
class singleton
@@ -42,6 +41,9 @@ protected:
instance_ = nullptr;
}
singleton(const singleton&) = delete;
singleton& operator=(const singleton&) = delete;
public:
static T & instance()
{