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

Method draw_ui

framework/api_vulkan_sample.cpp:498–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void ApiVulkanSample::draw_ui(const VkCommandBuffer command_buffer)
499{
500 if (has_gui())
501 {
502 const VkViewport viewport = vkb::initializers::viewport(static_cast<float>(width), static_cast<float>(height), 0.0f, 1.0f);
503 const VkRect2D scissor = vkb::initializers::rect2D(width, height, 0, 0);
504 vkCmdSetViewport(command_buffer, 0, 1, &viewport);
505 vkCmdSetScissor(command_buffer, 0, 1, &scissor);
506
507 get_gui().draw(command_buffer);
508 }
509}
510
511void ApiVulkanSample::draw_ui(const VkCommandBuffer command_buffer, uint32_t swapchain_image_index)
512{

Callers

nothing calls this directly

Calls 3

viewportFunction · 0.85
rect2DFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected