Skip to content

Commit

Permalink
Vulkan: Control secondary viewports format and present mode
Browse files Browse the repository at this point in the history
API changes:
- Secondary viewports surface format and present mode can now be controlled by the application view ImGui_ImplVulkan_RequestSecondaryViewportsChanges(...)
Impl changes (not exposed to the user):
- Each viewport now has its own VkRenderPass and VkPipeline (cached in the backed data). This fits to the fact that each viewport might have a different format (the previous code was making this (quite reasonable) assumption).
- Recycle some viewport resource on swapchain recreation if possible (CommandPool, CommandBuffer, Fence, Semaphores) rather than recreating them every time.
  • Loading branch information
SuperRonan committed Oct 29, 2024
1 parent 7a50853 commit 5b9a62f
Show file tree
Hide file tree
Showing 5 changed files with 474 additions and 162 deletions.
Loading

0 comments on commit 5b9a62f

Please sign in to comment.