Make vk_allocator a singleton
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user