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

Method create_command_pool

framework/core/device.h:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278template <vkb::BindingType bindingType>
279inline typename Device<bindingType>::CommandPoolType Device<bindingType>::create_command_pool(uint32_t queue_index, CommandPoolCreateFlagsType flags)
280{
281 if constexpr (bindingType == vkb::BindingType::Cpp)
282 {
283 vk::CommandPoolCreateInfo command_pool_info{.flags = flags, .queueFamilyIndex = queue_index};
284 return this->get_handle().createCommandPool(command_pool_info);
285 }
286 else
287 {
288 vk::CommandPoolCreateInfo command_pool_info{.flags = static_cast<vk::CommandPoolCreateFlags>(flags), .queueFamilyIndex = queue_index};
289 return static_cast<vk::Device>(this->get_handle()).createCommandPool(command_pool_info);
290 }
291}
292
293template <vkb::BindingType bindingType>
294inline std::pair<typename Device<bindingType>::ImageType, typename Device<bindingType>::DeviceMemoryType> Device<bindingType>::create_image(

Callers 2

Calls 1

get_handleMethod · 0.45

Tested by

no test coverage detected