Make Vulkan class a global instance

This commit is contained in:
Thraix
2023-04-04 21:14:01 +02:00
parent 9faec15fd6
commit 431ad9c573
56 changed files with 333 additions and 424 deletions
+1 -3
View File
@@ -1,6 +1,5 @@
#pragma once
#include "copium/core/Vulkan.h"
#include "copium/util/Common.h"
#include <vulkan/vulkan.hpp>
@@ -11,10 +10,9 @@ namespace Copium
{
CP_DELETE_COPY_AND_MOVE_CTOR(Sampler);
protected:
Vulkan& vulkan;
VkSampler sampler;
public:
Sampler(Vulkan& vulkan);
Sampler();
virtual ~Sampler();
virtual VkDescriptorImageInfo GetDescriptorImageInfo(int index) const = 0;