| 160 | |
| 161 | template <vkb::BindingType bindingType> |
| 162 | std::shared_ptr<vkb::core::CommandBuffer<bindingType>> CommandPool<bindingType>::request_command_buffer(CommandBufferLevelType level) |
| 163 | { |
| 164 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 165 | { |
| 166 | return CommandPoolBase::request_command_buffer(*this, level); |
| 167 | } |
| 168 | else |
| 169 | { |
| 170 | std::shared_ptr<vkb::core::CommandBufferCpp> command_buffer = |
| 171 | CommandPoolBase::request_command_buffer(reinterpret_cast<vkb::core::CommandPoolCpp &>(*this), static_cast<vk::CommandBufferLevel>(level)); |
| 172 | return *reinterpret_cast<std::shared_ptr<CommandBufferC> *>(&command_buffer); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | template <vkb::BindingType bindingType> |
| 177 | inline void CommandPool<bindingType>::reset_pool() |
no outgoing calls
no test coverage detected