SpiecsEngine
 
Loading...
Searching...
No Matches

◆ DestroySyncObjects()

void Spices::VulkanSwapChain::DestroySyncObjects ( ) const
private

Destroy Sync Objects.

Destroy SyncObkects.

Destroy SyncObkects.

Definition at line 289 of file VulkanSwapChain.cpp.

290 {
292
296 for (size_t i = 0; i < MaxFrameInFlight; i++)
297 {
298 // Graphic SyncObjects.
299 vkDestroySemaphore(m_VulkanState.m_Device, m_VulkanState.m_GraphicImageSemaphore[i], nullptr);
300 vkDestroySemaphore(m_VulkanState.m_Device, m_VulkanState.m_GraphicQueueSemaphore[i], nullptr);
301 vkDestroyFence(m_VulkanState.m_Device, m_VulkanState.m_GraphicFence[i], nullptr);
302
303 // Compute SyncObjects.
304 vkDestroySemaphore(m_VulkanState.m_Device, m_VulkanState.m_ComputeQueueSemaphore[i], nullptr);
305 vkDestroyFence(m_VulkanState.m_Device, m_VulkanState.m_ComputeFence[i], nullptr);
306 }
307 }
#define SPICES_PROFILE_ZONE
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
constexpr uint32_t MaxFrameInFlight
Max In Flight Frame. 2 buffers are enough in this program.
Definition VulkanUtils.h:22
std::array< VkSemaphore, MaxFrameInFlight > m_ComputeQueueSemaphore
std::array< VkSemaphore, MaxFrameInFlight > m_GraphicQueueSemaphore
std::array< VkFence, MaxFrameInFlight > m_ComputeFence
std::array< VkSemaphore, MaxFrameInFlight > m_GraphicImageSemaphore
std::array< VkFence, MaxFrameInFlight > m_GraphicFence

Referenced by ~VulkanSwapChain().