diff --git a/include/vkcv/Core.hpp b/include/vkcv/Core.hpp index 57c28ee71ff2b1b547361189ecb5e8975abf3993..addce8e509f6b1f4296955a9383908c65b60a2ad 100644 --- a/include/vkcv/Core.hpp +++ b/include/vkcv/Core.hpp @@ -46,10 +46,6 @@ namespace vkcv std::vector<vk::ImageView> m_swapchainImageViews; const Window& m_window; - uint64_t m_NextPipelineId; - std::vector<vk::Pipeline> m_Pipelines; - std::vector<vk::PipelineLayout> m_PipelineLayouts; - std::unique_ptr<PassManager> m_PassManager; std::unique_ptr<PipelineManager> m_PipelineManager; CommandResources m_CommandResources; diff --git a/src/vkcv/Core.cpp b/src/vkcv/Core.cpp index 30d5076908e5becd210c173c83efc1b8433e7468..a8a5a6c140c3ef06dac5e9a4282edb16a978b9da 100644 --- a/src/vkcv/Core.cpp +++ b/src/vkcv/Core.cpp @@ -273,9 +273,6 @@ namespace vkcv m_window(window), m_swapchain(swapChain), m_swapchainImageViews(imageViews), - m_NextPipelineId(0), - m_Pipelines{}, - m_PipelineLayouts{}, m_PassManager{std::make_unique<PassManager>(m_Context.m_Device)}, m_PipelineManager{std::make_unique<PipelineManager>(m_Context.m_Device)}, m_CommandResources(commandResources), @@ -284,20 +281,6 @@ namespace vkcv {} Core::~Core() noexcept { - for(const auto &layout : m_PipelineLayouts) - { - m_Context.m_Device.destroy(layout); - } - - for(const auto &pipeline : m_Pipelines) - { - m_Context.m_Device.destroy(pipeline); - } - - m_PipelineLayouts.clear(); - m_Pipelines.clear(); - m_NextPipelineId = 0; - for (auto image : m_swapchainImageViews) { m_Context.m_Device.destroyImageView(image); }