SpiecsEngine
 
Loading...
Searching...
No Matches

◆ EndImguiFrameAsync()

void Spices::SlateRenderer::EndImguiFrameAsync ( uint32_t index)
private

End Imgui frame.

Parameters
[in]indexCommandBuffer index.

Definition at line 242 of file SlateRenderer.cpp.

243 {
245
246 const ImGuiIO& io = ImGui::GetIO();
247
248 ImGui::Render();
249
250 SubmitCmdsParallel(m_VulkanState.m_GraphicCommandBuffer[index], 0, [&](VkCommandBuffer cmdBuffer) {
251 ImGui_ImplVulkan_RenderDrawData(ImGui::GetDrawData(), cmdBuffer);
252 });
253
254 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
255 {
256 ImGui::UpdatePlatformWindows();
257 ImGui::RenderPlatformWindowsDefault();
258 }
259 }
#define SPICES_PROFILE_ZONE
std::future< VkCommandBuffer > SubmitCmdsParallel(VkCommandBuffer primaryCmdBuffer, uint32_t subPass, F &&func)
Submit a group of commands to secondary command buffer, and execute all of them.
Definition Renderer.h:2273
VulkanState & m_VulkanState
This variable is passed while renderer instanced.
Definition Renderer.h:1992
std::array< VkCommandBuffer, MaxFrameInFlight > m_GraphicCommandBuffer

References Spices::Renderer::m_VulkanState.