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

Method create_command_pool

framework/hpp_api_vulkan_sample.cpp:626–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void HPPApiVulkanSample::create_command_pool()
627{
628 uint32_t queue_family_index = get_device().get_queue_by_flags(vk::QueueFlagBits::eGraphics | vk::QueueFlagBits::eCompute, 0).get_family_index();
629 vk::CommandPoolCreateInfo command_pool_info{.queueFamilyIndex = queue_family_index};
630 cmd_pool = get_device().get_handle().createCommandPool(command_pool_info);
631}
632
633void HPPApiVulkanSample::setup_depth_stencil()
634{

Callers

nothing calls this directly

Calls 2

get_family_indexMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected