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

Method draw_ui

framework/hpp_api_vulkan_sample.cpp:461–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void HPPApiVulkanSample::draw_ui(const vk::CommandBuffer command_buffer)
462{
463 if (has_gui())
464 {
465 command_buffer.setViewport(0, vk::Viewport{0.0f, 0.0f, static_cast<float>(extent.width), static_cast<float>(extent.height), 0.0f, 1.0f});
466 command_buffer.setScissor(0, vk::Rect2D{{0, 0}, extent});
467
468 get_gui().draw(command_buffer);
469 }
470}
471
472void HPPApiVulkanSample::draw_ui(const vk::CommandBuffer command_buffer, uint32_t swapchain_image_index)
473{

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected