| 313 | |
| 314 | template <vkb::BindingType bindingType> |
| 315 | inline void CommandBuffer<bindingType>::begin_impl(vk::CommandBufferUsageFlags flags, vkb::core::CommandBuffer<bindingType> *primary_cmd_buf) |
| 316 | { |
| 317 | if (level == vk::CommandBufferLevel::eSecondary) |
| 318 | { |
| 319 | assert(primary_cmd_buf && "A primary command buffer pointer must be provided when calling begin from a secondary one"); |
| 320 | |
| 321 | return begin_impl(flags, primary_cmd_buf->current_render_pass, primary_cmd_buf->current_framebuffer, primary_cmd_buf->pipeline_state.get_subpass_index()); |
| 322 | } |
| 323 | else |
| 324 | { |
| 325 | return begin_impl(flags, nullptr, nullptr, 0); |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | template <vkb::BindingType bindingType> |
no outgoing calls