| 669 | |
| 670 | template <vkb::BindingType bindingType> |
| 671 | inline 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 | |
| 694 | template <vkb::BindingType bindingType> |
| 695 | inline void VulkanSample<bindingType>::finish() |
nothing calls this directly
no test coverage detected