From 6defbe79e6d75c172042f4e619894d3d809b05de Mon Sep 17 00:00:00 2001 From: Rinzii Date: Wed, 23 Aug 2023 13:05:17 -0400 Subject: [PATCH] ok figured it out --- engine/include/gen/graphics/swapchain.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/include/gen/graphics/swapchain.hpp b/engine/include/gen/graphics/swapchain.hpp index c22207b..e6abcc6 100644 --- a/engine/include/gen/graphics/swapchain.hpp +++ b/engine/include/gen/graphics/swapchain.hpp @@ -39,7 +39,7 @@ namespace gen GEN_NODISCARD vk::SwapchainKHR const & getSwapChain() const { return m_swapChain.get(); } GEN_NODISCARD vk::Extent2D const & getExtent() const { return m_swapChainInfo.imageExtent; } GEN_NODISCARD vk::Format const & getFormat() const { return m_swapChainInfo.imageFormat; } - GEN_NODISCARD std::span const & getImages() const { return m_swapChainImages; } + GEN_NODISCARD std::vector const & getImages() const { return m_swapChainImages; } GEN_NODISCARD std::vector const & getImageViews() const { return m_swapChainImageViews; } private: @@ -55,7 +55,7 @@ namespace gen SwapChainSupportDetails m_swapChainSupport{}; vk::SwapchainCreateInfoKHR m_swapChainInfo{}; vk::UniqueSwapchainKHR m_swapChain{}; - std::span m_swapChainImages{}; + std::vector m_swapChainImages{}; std::vector m_swapChainImageViews{}; Logger m_logger{"graphics"};