SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~VulkanCommandPoolThreadWrapper()

Spices::VulkanCommandPoolThreadWrapper::~VulkanCommandPoolThreadWrapper ( )
virtual

Destructor Function.

Definition at line 209 of file VulkanCommandBuffer.cpp.

210 {
212
214
215 if (m_GraphicThreadId >= 0)
216 {
218
219 if (pool)
220 {
221 vkDestroyCommandPool(VulkanRenderBackend::GetState().m_Device, pool, nullptr);
222 pool = nullptr;
223 }
224 }
225
226 if (m_ComputeThreadId >= 0)
227 {
229
230 if (pool)
231 {
232 vkDestroyCommandPool(VulkanRenderBackend::GetState().m_Device, pool, nullptr);
233 pool = nullptr;
234 }
235 }
236 }
#define SPICES_PROFILE_ZONE
int m_GraphicThreadId
Thread Unique Graphic ThreadId.
int m_ComputeThreadId
Thread Unique Compute ThreadId.
static VkCommandPool & GetThreadComputeCommandPool()
Get Thread Compute VkCommandPool by thread id.
static bool m_IsPoolActive
True if this Pool is actived.
static VkCommandPool & GetThreadGraphicCommandPool()
Get Thread Graphic VkCommandPool by thread id.
static VulkanState & GetState()
Get VulkanState in use.

References m_ComputeThreadId, m_GraphicThreadId, and Spices::VulkanCommandPool::m_IsPoolActive.