1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Backends: Vulkan: clarify ImGui_ImplVulkanH_Window members.

This commit is contained in:
ocornut 2026-01-05 15:58:08 +01:00
parent 25158fe33b
commit f106ccd5fa

View file

@ -223,21 +223,24 @@ struct ImGui_ImplVulkanH_FrameSemaphores
// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) // (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.)
struct ImGui_ImplVulkanH_Window struct ImGui_ImplVulkanH_Window
{ {
int Width; // Input
int Height; VkSurfaceFormatKHR SurfaceFormat;
VkSwapchainKHR Swapchain; VkPresentModeKHR PresentMode;
VkSurfaceKHR Surface; bool UseDynamicRendering;
VkSurfaceFormatKHR SurfaceFormat; bool ClearEnable;
VkPresentModeKHR PresentMode; VkClearValue ClearValue;
VkRenderPass RenderPass;
VkPipeline Pipeline; // The window pipeline may uses a different VkRenderPass than the one passed in ImGui_ImplVulkan_InitInfo // Internal
bool UseDynamicRendering; int Width; // Generally same as passed to ImGui_ImplVulkanH_CreateOrResizeWindow()
bool ClearEnable; int Height;
VkClearValue ClearValue; VkSwapchainKHR Swapchain;
uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount) VkSurfaceKHR Surface;
uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count) VkRenderPass RenderPass;
uint32_t SemaphoreCount; // Number of simultaneous in-flight frames + 1, to be able to use it in vkAcquireNextImageKHR VkPipeline Pipeline; // The window pipeline may uses a different VkRenderPass than the one passed in ImGui_ImplVulkan_InitInfo
uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data) uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount)
uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count)
uint32_t SemaphoreCount; // Number of simultaneous in-flight frames + 1, to be able to use it in vkAcquireNextImageKHR
uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data)
ImVector<ImGui_ImplVulkanH_Frame> Frames; ImVector<ImGui_ImplVulkanH_Frame> Frames;
ImVector<ImGui_ImplVulkanH_FrameSemaphores> FrameSemaphores; ImVector<ImGui_ImplVulkanH_FrameSemaphores> FrameSemaphores;