SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Destroy()

void Spices::VulkanSwapChain::Destroy ( ) const

Destroy this.

Destroy ImageView.

Destroy Sampler.

Destroy SwapChain.

Destroy ImageView.

Destroy Sampler.

Destroy SwapChain.

Definition at line 221 of file VulkanSwapChain.cpp.

222 {
224
228 for (const auto imageView : m_VulkanState.m_SwapChainImageViews)
229 {
230 vkDestroyImageView(m_VulkanState.m_Device, imageView, nullptr);
231 }
232
236 for (const auto sampler : m_VulkanState.m_SwapChainImageSamplers)
237 {
238 vkDestroySampler(m_VulkanState.m_Device, sampler, nullptr);
239 }
240
244 vkDestroySwapchainKHR(m_VulkanState.m_Device, m_VulkanState.m_SwapChain, nullptr);
245 m_VulkanState.m_SwapChain = nullptr;
246 }
#define SPICES_PROFILE_ZONE
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
VkSwapchainKHR m_SwapChain

References Spices::VulkanObject::m_VulkanState.

Referenced by ~VulkanSwapChain().