MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / create_command_pool

Method create_command_pool

framework/api_vulkan_sample.cpp:668–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668void ApiVulkanSample::create_command_pool()
669{
670 VkCommandPoolCreateInfo command_pool_info = {};
671 command_pool_info.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
672 command_pool_info.queueFamilyIndex = get_device().get_queue_by_flags(VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT, 0).get_family_index();
673 VK_CHECK(vkCreateCommandPool(get_device().get_handle(), &command_pool_info, nullptr, &cmd_pool));
674}
675
676void ApiVulkanSample::setup_depth_stencil()
677{

Callers

nothing calls this directly

Calls 2

get_family_indexMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected