| 459 | } |
| 460 | |
| 461 | void 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 | |
| 472 | void HPPApiVulkanSample::draw_ui(const vk::CommandBuffer command_buffer, uint32_t swapchain_image_index) |
| 473 | { |