aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/VulkanSwapChain.cpp
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-10-26 13:28:54 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-10-26 13:28:54 +0200
commita5082d2962d621dc7145614d655016c59ddacc5b (patch)
treeb92a46eb447d64efcf70f35ad5486a507f4b3a30 /src/VulkanSwapChain.cpp
parent328c11f4dfd2653f9b6d12633b38d7baa49958da (diff)
restructuration and test
Diffstat (limited to 'src/VulkanSwapChain.cpp')
-rw-r--r--src/VulkanSwapChain.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/VulkanSwapChain.cpp b/src/VulkanSwapChain.cpp
index 2ae5451..59aac45 100644
--- a/src/VulkanSwapChain.cpp
+++ b/src/VulkanSwapChain.cpp
@@ -11,9 +11,11 @@
#pragma once
#include "VulkanSwapChain.hpp"
-#include "VkEngine.h"
+#include "VulkanDevice.hpp"
+#include "rendertarget.hpp"
+#include "macros.h"
-vks::VulkanSwapChain::VulkanSwapChain(ptrVkEngine _vke, bool vsync) {
+vke::swap_chain_t::swap_chain_t(engine_t *_vke, bool vsync) {
vke = _vke;
GET_INSTANCE_PROC_ADDR(vke->instance, GetPhysicalDeviceSurfaceSupportKHR);
GET_INSTANCE_PROC_ADDR(vke->instance, GetPhysicalDeviceSurfaceCapabilitiesKHR);
@@ -136,7 +138,7 @@ vks::VulkanSwapChain::VulkanSwapChain(ptrVkEngine _vke, bool vsync) {
presentInfo = {VK_STRUCTURE_TYPE_PRESENT_INFO_KHR};
presentInfo.swapchainCount = 1;
}
-vks::VulkanSwapChain::~VulkanSwapChain()
+vke::swap_chain_t::~swap_chain_t()
{
vke->device->destroySemaphore(presentCompleteSemaphore);
@@ -149,7 +151,7 @@ vks::VulkanSwapChain::~VulkanSwapChain()
swapChain = VK_NULL_HANDLE;
}
-void vks::VulkanSwapChain::create(uint32_t& width, uint32_t& height)
+void vke::swap_chain_t::create(uint32_t& width, uint32_t& height)
{
vkDeviceWaitIdle (vke->device->dev);