| 277 | |
| 278 | template <vkb::BindingType bindingType> |
| 279 | inline 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 | |
| 293 | template <vkb::BindingType bindingType> |
| 294 | inline std::pair<typename Device<bindingType>::ImageType, typename Device<bindingType>::DeviceMemoryType> Device<bindingType>::create_image( |
no test coverage detected