SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~VulkanCommandPool()

Spices::VulkanCommandPool::~VulkanCommandPool ( )
overridevirtual

Destructor Function.

Destroy the Vulkan CommandPool Object.

Destroy the Vulkan CommandPool Object.

Definition at line 55 of file VulkanCommandBuffer.cpp.

56 {
58
59 m_IsPoolActive = false;
60
64 for(auto& pool : m_ThreadGraphicCommandPool)
65 {
66 if (pool)
67 {
68 vkDestroyCommandPool(m_VulkanState.m_Device, pool, nullptr);
69 pool = nullptr;
70 }
71 }
72
73 for(auto& pool : m_ThreadComputeCommandPool)
74 {
75 if (pool)
76 {
77 vkDestroyCommandPool(m_VulkanState.m_Device, pool, nullptr);
78 pool = nullptr;
79 }
80 }
81 }
#define SPICES_PROFILE_ZONE
static std::vector< VkCommandPool > m_ThreadGraphicCommandPool
Thread Graphic VkCommandPool map.
static bool m_IsPoolActive
True if this Pool is actived.
static std::vector< VkCommandPool > m_ThreadComputeCommandPool
Thread Compute VkCommandPool map.
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.

References m_IsPoolActive.