Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
131 {
133
135
137 {
138 SPICES_CORE_ERROR("CommandPool is not active.")
139 }
140
142 {
144 {
146 }
147
149 {
152 }
153 }
154
156 {
160 VkCommandPoolCreateInfo poolInfo{};
161 poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
162 poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
164
168 VkCommandPool pool;
170 DEBUGUTILS_SETOBJECTNAME(VK_OBJECT_TYPE_COMMAND_POOL,
reinterpret_cast<uint64_t
>(pool),
VulkanRenderBackend::GetState().m_Device,
"ThreadComputeCommandPool")
172 }
173
175 }
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
int m_ComputeThreadId
Thread Unique Compute ThreadId.
static VulkanCommandPoolThreadWrapper & GetInst()
Get this instance.
static bool m_IsPoolActive
True if this Pool is actived.
static std::mutex m_ComputeCommandPoolMutex
Mutex for GraphicCommandPool.
static std::vector< VkCommandPool > m_ThreadComputeCommandPool
Thread Compute VkCommandPool map.
static VulkanState & GetState()
Get VulkanState in use.
uint32_t m_ComputeQueueFamily