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

Method draw

framework/vulkan_sample.h:575–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573
574template <vkb::BindingType bindingType>
575inline void VulkanSample<bindingType>::draw(vkb::core::CommandBuffer<bindingType> &command_buffer, vkb::rendering::RenderTarget<bindingType> &render_target)
576{
577 if constexpr (bindingType == BindingType::Cpp)
578 {
579 draw_impl(command_buffer, render_target);
580 }
581 else
582 {
583 draw_impl(reinterpret_cast<vkb::core::CommandBufferCpp &>(command_buffer),
584 reinterpret_cast<vkb::rendering::RenderTargetCpp &>(render_target));
585 }
586}
587
588template <vkb::BindingType bindingType>
589inline void VulkanSample<bindingType>::draw_impl(vkb::core::CommandBufferCpp &command_buffer,

Callers 2

draw_renderpass_implMethod · 0.45
render_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected