Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
84 {
86
88
90 {
91 SPICES_CORE_ERROR("CommandPool is not active.")
92 }
93
95 {
97 {
99 }
100
102 {
105 }
106 }
107
109 {
113 VkCommandPoolCreateInfo poolInfo{};
114 poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
115 poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
117
121 VkCommandPool pool;
123 DEBUGUTILS_SETOBJECTNAME(VK_OBJECT_TYPE_COMMAND_POOL,
reinterpret_cast<uint64_t
>(pool),
VulkanRenderBackend::GetState().m_Device,
"ThreadGraphicCommandPool")
125 }
126
128 }
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
int m_GraphicThreadId
Thread Unique Graphic ThreadId.
static VulkanCommandPoolThreadWrapper & GetInst()
Get this instance.
static std::vector< VkCommandPool > m_ThreadGraphicCommandPool
Thread Graphic VkCommandPool map.
static bool m_IsPoolActive
True if this Pool is actived.
static std::mutex m_GraphicCommandPoolMutex
Mutex for GraphicCommandPool.
static VulkanState & GetState()
Get VulkanState in use.
uint32_t m_GraphicQueueFamily