Skip to content
Snippets Groups Projects
Commit 4d941484 authored by Artur Wasmut's avatar Artur Wasmut
Browse files

remove unnecessary members.

parent 9d31fe69
No related branches found
No related tags found
1 merge request!12Resolve "Swapchain Class"
Pipeline #24803 passed
...@@ -46,10 +46,6 @@ namespace vkcv ...@@ -46,10 +46,6 @@ namespace vkcv
std::vector<vk::ImageView> m_swapchainImageViews; std::vector<vk::ImageView> m_swapchainImageViews;
const Window& m_window; 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<PassManager> m_PassManager;
std::unique_ptr<PipelineManager> m_PipelineManager; std::unique_ptr<PipelineManager> m_PipelineManager;
CommandResources m_CommandResources; CommandResources m_CommandResources;
......
...@@ -273,9 +273,6 @@ namespace vkcv ...@@ -273,9 +273,6 @@ namespace vkcv
m_window(window), m_window(window),
m_swapchain(swapChain), m_swapchain(swapChain),
m_swapchainImageViews(imageViews), m_swapchainImageViews(imageViews),
m_NextPipelineId(0),
m_Pipelines{},
m_PipelineLayouts{},
m_PassManager{std::make_unique<PassManager>(m_Context.m_Device)}, m_PassManager{std::make_unique<PassManager>(m_Context.m_Device)},
m_PipelineManager{std::make_unique<PipelineManager>(m_Context.m_Device)}, m_PipelineManager{std::make_unique<PipelineManager>(m_Context.m_Device)},
m_CommandResources(commandResources), m_CommandResources(commandResources),
...@@ -284,20 +281,6 @@ namespace vkcv ...@@ -284,20 +281,6 @@ namespace vkcv
{} {}
Core::~Core() noexcept { 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) { for (auto image : m_swapchainImageViews) {
m_Context.m_Device.destroyImageView(image); m_Context.m_Device.destroyImageView(image);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment