42#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES)
43#define VK_NO_PROTOTYPES
45#include <vulkan/vulkan.h>
52 VkPhysicalDevice PhysicalDevice;
56 VkPipelineCache PipelineCache;
57 VkDescriptorPool DescriptorPool;
59 uint32_t MinImageCount;
61 VkSampleCountFlagBits MSAASamples;
62 const VkAllocationCallbacks* Allocator;
63 void (*CheckVkResultFn)(VkResult err);
68IMGUI_IMPL_API
void ImGui_ImplVulkan_Shutdown();
69IMGUI_IMPL_API
void ImGui_ImplVulkan_NewFrame();
70IMGUI_IMPL_API
void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline = VK_NULL_HANDLE);
71IMGUI_IMPL_API
bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer);
72IMGUI_IMPL_API
void ImGui_ImplVulkan_DestroyFontUploadObjects();
73IMGUI_IMPL_API
void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count);
78IMGUI_IMPL_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler, VkImageView image_view, VkImageLayout image_layout);
79IMGUI_IMPL_API
void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set);
83IMGUI_IMPL_API
bool ImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction(*loader_func)(
const char* function_name,
void* user_data),
void* user_data =
nullptr);
105IMGUI_IMPL_API
void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device,
ImGui_ImplVulkanH_Window* wnd, uint32_t queue_family,
const VkAllocationCallbacks* allocator,
int w,
int h, uint32_t min_image_count);
106IMGUI_IMPL_API
void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device,
ImGui_ImplVulkanH_Window* wnd,
const VkAllocationCallbacks* allocator);
107IMGUI_IMPL_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface,
const VkFormat* request_formats,
int request_formats_count, VkColorSpaceKHR request_color_space);
108IMGUI_IMPL_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface,
const VkPresentModeKHR* request_modes,
int request_modes_count);
109IMGUI_IMPL_API
int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode);
116 VkCommandPool CommandPool;
117 VkCommandBuffer CommandBuffer;
120 VkImageView BackbufferView;
121 VkFramebuffer Framebuffer;
126 VkSemaphore ImageAcquiredSemaphore;
127 VkSemaphore RenderCompleteSemaphore;
132struct ImGui_ImplVulkanH_Window
136 VkSwapchainKHR Swapchain;
137 VkSurfaceKHR Surface;
138 VkSurfaceFormatKHR SurfaceFormat;
139 VkPresentModeKHR PresentMode;
140 VkRenderPass RenderPass;
143 VkClearValue ClearValue;
146 uint32_t SemaphoreIndex;
150 ImGui_ImplVulkanH_Window()
152 memset((
void*)
this, 0,
sizeof(*
this));
153 PresentMode = (VkPresentModeKHR)~0;
Определения imgui_impl_vulkan.h:50
Определения imgui_impl_vulkan.h:115
Определения imgui_impl_vulkan.h:125
Определения imgui_impl_vulkan.h:133