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 -4
View File
@@ -1,7 +1,6 @@
#pragma once
#include "copium/buffer/CommandBuffer.h"
#include "copium/core/Vulkan.h"
#include "copium/sampler/DepthAttachment.h"
#include "copium/util/Common.h"
@@ -27,8 +26,6 @@ namespace Copium
public:
static const int MAX_FRAMES_IN_FLIGHT = 2;
private:
Vulkan& vulkan;
VkSwapchainKHR handle;
VkRenderPass renderPass;
VkFormat imageFormat;
@@ -46,7 +43,7 @@ namespace Copium
std::vector<VkFence> inFlightFences;
public:
SwapChain(Vulkan& vulkan);
SwapChain();
~SwapChain();
void BeginFrameBuffer(const CommandBuffer& commandBuffer) const;