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

Method submit_impl

framework/rendering/render_context.h:785–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783
784template <vkb::BindingType bindingType>
785inline 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
804template <vkb::BindingType bindingType>
805inline typename RenderContext<bindingType>::SemaphoreType

Callers

nothing calls this directly

Calls 7

to_u32Function · 0.85
sizeMethod · 0.80
beginMethod · 0.45
get_handleMethod · 0.45
request_semaphoreMethod · 0.45
request_fenceMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected