mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
Vulkan: Note for unsupported feature with multi-viewports. (#2071)
This commit is contained in:
parent
8ec24036d7
commit
01de69de36
2 changed files with 4 additions and 2 deletions
|
|
@ -783,10 +783,12 @@ void ImGui_ImplVulkan_NewFrame()
|
|||
{
|
||||
}
|
||||
|
||||
// FIXME-VIEWPORT: Need to recreate all swap chains?
|
||||
void ImGui_ImplVulkan_SetSwapChainMinImageCount(int min_image_count)
|
||||
{
|
||||
IM_ASSERT(min_image_count >= 2);
|
||||
if (g_VulkanInitInfo.MinImageCount == min_image_count)
|
||||
return;
|
||||
IM_ASSERT(0); // FIXME-VIEWPORT: Need to recreate all swap chains?
|
||||
g_VulkanInitInfo.MinImageCount = min_image_count;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ IMGUI_IMPL_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, V
|
|||
IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer);
|
||||
IMGUI_IMPL_API void ImGui_ImplVulkan_DestroyFontUploadObjects();
|
||||
IMGUI_IMPL_API void ImGui_ImplVulkan_DestroyFrameRenderBuffers(VkInstance instance, VkDevice device, ImGui_ImplVulkan_FrameRenderBuffers* buffers, const VkAllocationCallbacks* allocator);
|
||||
IMGUI_IMPL_API void ImGui_ImplVulkan_SetSwapChainMinImageCount(int frames_queue_size); // To override MinImageCount after initialization
|
||||
IMGUI_IMPL_API void ImGui_ImplVulkan_SetSwapChainMinImageCount(int min_image_count); // To override MinImageCount after initialization
|
||||
|
||||
// Called by ImGui_ImplVulkan_Init(), might be useful elsewhere.
|
||||
IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateDeviceObjects();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue