Constructor Function. Create VkCommandPool.
Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
Create commandpool and set it global.
Instanced a VkCommandPoolCreateInfo with default value.
Create commandpool and set it global.
Create commandpool and set it global.
21 {
23
25
29 VkCommandPoolCreateInfo poolInfo{};
30 poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
31 poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
32 poolInfo.queueFamilyIndex = vulkanState.m_GraphicQueueFamily;
33
37 VK_CHECK(vkCreateCommandPool(vulkanState.m_Device, &poolInfo,
nullptr, &vulkanState.m_GraphicCommandPool))
38 DEBUGUTILS_SETOBJECTNAME(VK_OBJECT_TYPE_COMMAND_POOL, reinterpret_cast<uint64_t>(vulkanState.m_GraphicCommandPool), vulkanState.m_Device, "GraphicCommandPool")
39
40 VulkanCommandPoolThreadWrapper::GetInst().m_GraphicThreadId = 0;
42
43 poolInfo.queueFamilyIndex = vulkanState.m_ComputeQueueFamily;
44
48 VK_CHECK(vkCreateCommandPool(vulkanState.m_Device, &poolInfo,
nullptr, &vulkanState.m_ComputeCommandPool))
49 DEBUGUTILS_SETOBJECTNAME(VK_OBJECT_TYPE_COMMAND_POOL, reinterpret_cast<uint64_t>(vulkanState.m_ComputeCommandPool), vulkanState.m_Device, "ComputeCommandPool")
50
51 VulkanCommandPoolThreadWrapper::GetInst().m_ComputeThreadId = 0;
53 }
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
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.
VulkanObject(VulkanState &vulkanState)
Constructor Function. Init member variables.