| 783 | |
| 784 | template <vkb::BindingType bindingType> |
| 785 | inline void RenderContext<bindingType>::submit_impl(std::vector<std::shared_ptr<vkb::core::CommandBufferCpp>> const &command_buffers) |
| 786 | { |
| 787 | assert(frame_active && "RenderContext is inactive, cannot submit command buffer. Please call begin()"); |
| 788 | |
| 789 | vk::Semaphore render_semaphore = nullptr; |
| 790 | |
| 791 | if (swapchain) |
| 792 | { |
| 793 | assert(acquired_semaphore && "We do not have acquired_semaphore, it was probably consumed?\n"); |
| 794 | render_semaphore = submit_impl(queue, command_buffers, acquired_semaphore, vk::PipelineStageFlagBits::eColorAttachmentOutput); |
| 795 | } |
| 796 | else |
| 797 | { |
| 798 | submit_impl(queue, command_buffers); |
| 799 | } |
| 800 | |
| 801 | end_frame(render_semaphore); |
| 802 | } |
| 803 | |
| 804 | template <vkb::BindingType bindingType> |
| 805 | inline typename RenderContext<bindingType>::SemaphoreType |
nothing calls this directly
no test coverage detected