This commit is contained in:
parent
e6d8798296
commit
643fc49b18
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ Swapchain::Swapchain(ISurface *surface, IGpu *gpu, IDevice *device)
|
|||
const auto queue_indices = m_device->get_family_indices();
|
||||
m_format = surface_format.format;
|
||||
|
||||
std::cout << "CREATING SWAPCHAIN" << std::endl;
|
||||
m_swapchain = m_device->create_swapchain(
|
||||
VkSwapchainCreateInfoKHR {
|
||||
.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
|
||||
|
@ -89,6 +90,7 @@ Swapchain::~Swapchain()
|
|||
{
|
||||
m_device->wait_idle();
|
||||
// m_device->destroy_image_views(m_image_views);
|
||||
std::cout << "DESTROYING SWAPCHAIN" << std::endl;
|
||||
m_device->destroy_swapchain(m_swapchain);
|
||||
}
|
||||
catch (const std::exception &exp)
|
||||
|
|
Loading…
Add table
Reference in a new issue