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

Method draw_renderpass_impl

framework/vulkan_sample.h:671–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669
670template <vkb::BindingType bindingType>
671inline void VulkanSample<bindingType>::draw_renderpass_impl(vkb::core::CommandBufferCpp &command_buffer,
672 vkb::rendering::RenderTargetCpp &render_target)
673{
674 set_viewport_and_scissor_impl(command_buffer, render_target.get_extent());
675
676 // render is a virtual function, thus we have to call that, instead of directly calling render_impl!
677 if constexpr (bindingType == BindingType::Cpp)
678 {
679 render(command_buffer);
680 }
681 else
682 {
683 render(reinterpret_cast<vkb::core::CommandBufferC &>(command_buffer));
684 }
685
686 if (gui)
687 {
688 gui->draw(command_buffer);
689 }
690
691 command_buffer.get_handle().endRenderPass();
692}
693
694template <vkb::BindingType bindingType>
695inline void VulkanSample<bindingType>::finish()

Callers

nothing calls this directly

Calls 2

drawMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected