Classes | Functions | Variables
imgui_impl_vulkan.cpp File Reference
#include "imgui.h"
#include "imgui_impl_vulkan.h"
#include <stdio.h>
Include dependency graph for imgui_impl_vulkan.cpp:

Go to the source code of this file.

Classes

struct  ImGui_ImplVulkanH_FrameRenderBuffers
 
struct  ImGui_ImplVulkanH_WindowRenderBuffers
 

Functions

static void check_vk_result (VkResult err)
 
static void CreateOrResizeBuffer (VkBuffer &buffer, VkDeviceMemory &buffer_memory, VkDeviceSize &p_buffer_size, size_t new_size, VkBufferUsageFlagBits usage)
 
bool ImGui_ImplVulkan_CreateDeviceObjects ()
 
bool ImGui_ImplVulkan_CreateFontsTexture (VkCommandBuffer command_buffer)
 
void ImGui_ImplVulkan_DestroyDeviceObjects ()
 
void ImGui_ImplVulkan_DestroyFontUploadObjects ()
 
bool ImGui_ImplVulkan_Init (ImGui_ImplVulkan_InitInfo *info, VkRenderPass render_pass)
 
static uint32_t ImGui_ImplVulkan_MemoryType (VkMemoryPropertyFlags properties, uint32_t type_bits)
 
void ImGui_ImplVulkan_NewFrame ()
 
void ImGui_ImplVulkan_RenderDrawData (ImDrawData *draw_data, VkCommandBuffer command_buffer)
 
void ImGui_ImplVulkan_SetMinImageCount (uint32_t min_image_count)
 
static void ImGui_ImplVulkan_SetupRenderState (ImDrawData *draw_data, VkCommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers *rb, int fb_width, int fb_height)
 
void ImGui_ImplVulkan_Shutdown ()
 
void ImGui_ImplVulkanH_CreateWindow (VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window *wd, uint32_t queue_family, const VkAllocationCallbacks *allocator, int width, int height, uint32_t min_image_count)
 
void ImGui_ImplVulkanH_CreateWindowCommandBuffers (VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window *wd, uint32_t queue_family, const VkAllocationCallbacks *allocator)
 
void ImGui_ImplVulkanH_CreateWindowSwapChain (VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window *wd, const VkAllocationCallbacks *allocator, int w, int h, uint32_t min_image_count)
 
void ImGui_ImplVulkanH_DestroyFrame (VkDevice device, ImGui_ImplVulkanH_Frame *fd, const VkAllocationCallbacks *allocator)
 
void ImGui_ImplVulkanH_DestroyFrameRenderBuffers (VkDevice device, ImGui_ImplVulkanH_FrameRenderBuffers *buffers, const VkAllocationCallbacks *allocator)
 
void ImGui_ImplVulkanH_DestroyFrameSemaphores (VkDevice device, ImGui_ImplVulkanH_FrameSemaphores *fsd, const VkAllocationCallbacks *allocator)
 
void ImGui_ImplVulkanH_DestroyWindow (VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window *wd, const VkAllocationCallbacks *allocator)
 
void ImGui_ImplVulkanH_DestroyWindowRenderBuffers (VkDevice device, ImGui_ImplVulkanH_WindowRenderBuffers *buffers, const VkAllocationCallbacks *allocator)
 
int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode (VkPresentModeKHR present_mode)
 
VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode (VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR *request_modes, int request_modes_count)
 
VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat (VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat *request_formats, int request_formats_count, VkColorSpaceKHR request_color_space)
 

Variables

static uint32_t __glsl_shader_frag_spv []
 
static uint32_t __glsl_shader_vert_spv []
 
static VkDeviceSize g_BufferMemoryAlignment = 256
 
static VkDescriptorSet g_DescriptorSet = VK_NULL_HANDLE
 
static VkDescriptorSetLayout g_DescriptorSetLayout = VK_NULL_HANDLE
 
static VkImage g_FontImage = VK_NULL_HANDLE
 
static VkDeviceMemory g_FontMemory = VK_NULL_HANDLE
 
static VkSampler g_FontSampler = VK_NULL_HANDLE
 
static VkImageView g_FontView = VK_NULL_HANDLE
 
static ImGui_ImplVulkanH_WindowRenderBuffers g_MainWindowRenderBuffers
 
static VkPipeline g_Pipeline = VK_NULL_HANDLE
 
static VkPipelineCreateFlags g_PipelineCreateFlags = 0x00
 
static VkPipelineLayout g_PipelineLayout = VK_NULL_HANDLE
 
static VkRenderPass g_RenderPass = VK_NULL_HANDLE
 
static VkBuffer g_UploadBuffer = VK_NULL_HANDLE
 
static VkDeviceMemory g_UploadBufferMemory = VK_NULL_HANDLE
 
static ImGui_ImplVulkan_InitInfo g_VulkanInitInfo = {}
 

Function Documentation

◆ check_vk_result()

static void check_vk_result ( VkResult  err)
static

Definition at line 227 of file imgui_impl_vulkan.cpp.

◆ CreateOrResizeBuffer()

static void CreateOrResizeBuffer ( VkBuffer &  buffer,
VkDeviceMemory &  buffer_memory,
VkDeviceSize &  p_buffer_size,
size_t  new_size,
VkBufferUsageFlagBits  usage 
)
static

Definition at line 234 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_CreateDeviceObjects()

bool ImGui_ImplVulkan_CreateDeviceObjects ( )

Definition at line 587 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_CreateFontsTexture()

bool ImGui_ImplVulkan_CreateFontsTexture ( VkCommandBuffer  command_buffer)

Definition at line 435 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_DestroyDeviceObjects()

void ImGui_ImplVulkan_DestroyDeviceObjects ( )

Definition at line 793 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_DestroyFontUploadObjects()

void ImGui_ImplVulkan_DestroyFontUploadObjects ( )

Definition at line 778 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_Init()

bool ImGui_ImplVulkan_Init ( ImGui_ImplVulkan_InitInfo info,
VkRenderPass  render_pass 
)

Definition at line 808 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_MemoryType()

static uint32_t ImGui_ImplVulkan_MemoryType ( VkMemoryPropertyFlags  properties,
uint32_t  type_bits 
)
static

Definition at line 216 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_NewFrame()

void ImGui_ImplVulkan_NewFrame ( )

Definition at line 836 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_RenderDrawData()

void ImGui_ImplVulkan_RenderDrawData ( ImDrawData draw_data,
VkCommandBuffer  command_buffer 
)

Definition at line 312 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_SetMinImageCount()

void ImGui_ImplVulkan_SetMinImageCount ( uint32_t  min_image_count)

Definition at line 840 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_SetupRenderState()

static void ImGui_ImplVulkan_SetupRenderState ( ImDrawData draw_data,
VkCommandBuffer  command_buffer,
ImGui_ImplVulkanH_FrameRenderBuffers rb,
int  fb_width,
int  fb_height 
)
static

Definition at line 267 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkan_Shutdown()

void ImGui_ImplVulkan_Shutdown ( )

Definition at line 831 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_CreateWindow()

void ImGui_ImplVulkanH_CreateWindow ( VkInstance  instance,
VkPhysicalDevice  physical_device,
VkDevice  device,
ImGui_ImplVulkanH_Window wd,
uint32_t  queue_family,
const VkAllocationCallbacks *  allocator,
int  width,
int  height,
uint32_t  min_image_count 
)

Definition at line 1156 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_CreateWindowCommandBuffers()

void ImGui_ImplVulkanH_CreateWindowCommandBuffers ( VkPhysicalDevice  physical_device,
VkDevice  device,
ImGui_ImplVulkanH_Window wd,
uint32_t  queue_family,
const VkAllocationCallbacks *  allocator 
)

Definition at line 936 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_CreateWindowSwapChain()

void ImGui_ImplVulkanH_CreateWindowSwapChain ( VkPhysicalDevice  physical_device,
VkDevice  device,
ImGui_ImplVulkanH_Window wd,
const VkAllocationCallbacks *  allocator,
int  w,
int  h,
uint32_t  min_image_count 
)

Definition at line 996 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_DestroyFrame()

void ImGui_ImplVulkanH_DestroyFrame ( VkDevice  device,
ImGui_ImplVulkanH_Frame fd,
const VkAllocationCallbacks *  allocator 
)

Definition at line 1184 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_DestroyFrameRenderBuffers()

void ImGui_ImplVulkanH_DestroyFrameRenderBuffers ( VkDevice  device,
ImGui_ImplVulkanH_FrameRenderBuffers buffers,
const VkAllocationCallbacks *  allocator 
)

Definition at line 1204 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_DestroyFrameSemaphores()

void ImGui_ImplVulkanH_DestroyFrameSemaphores ( VkDevice  device,
ImGui_ImplVulkanH_FrameSemaphores fsd,
const VkAllocationCallbacks *  allocator 
)

Definition at line 1197 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_DestroyWindow()

void ImGui_ImplVulkanH_DestroyWindow ( VkInstance  instance,
VkDevice  device,
ImGui_ImplVulkanH_Window wd,
const VkAllocationCallbacks *  allocator 
)

Definition at line 1163 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_DestroyWindowRenderBuffers()

void ImGui_ImplVulkanH_DestroyWindowRenderBuffers ( VkDevice  device,
ImGui_ImplVulkanH_WindowRenderBuffers buffers,
const VkAllocationCallbacks *  allocator 
)

Definition at line 1214 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_GetMinImageCountFromPresentMode()

int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode ( VkPresentModeKHR  present_mode)

Definition at line 983 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_SelectPresentMode()

VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode ( VkPhysicalDevice  physical_device,
VkSurfaceKHR  surface,
const VkPresentModeKHR *  request_modes,
int  request_modes_count 
)

Definition at line 914 of file imgui_impl_vulkan.cpp.

◆ ImGui_ImplVulkanH_SelectSurfaceFormat()

VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat ( VkPhysicalDevice  physical_device,
VkSurfaceKHR  surface,
const VkFormat *  request_formats,
int  request_formats_count,
VkColorSpaceKHR  request_color_space 
)

Definition at line 870 of file imgui_impl_vulkan.cpp.

Variable Documentation

◆ __glsl_shader_frag_spv

uint32_t __glsl_shader_frag_spv[]
static
Initial value:
=
{
0x07230203,0x00010000,0x00080001,0x0000001e,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000d,0x00030010,
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
0x00000000,0x00040005,0x00000009,0x6c6f4366,0x0000726f,0x00030005,0x0000000b,0x00000000,
0x00050006,0x0000000b,0x00000000,0x6f6c6f43,0x00000072,0x00040006,0x0000000b,0x00000001,
0x00005655,0x00030005,0x0000000d,0x00006e49,0x00050005,0x00000016,0x78655473,0x65727574,
0x00000000,0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000d,0x0000001e,
0x00000000,0x00040047,0x00000016,0x00000022,0x00000000,0x00040047,0x00000016,0x00000021,
0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,
0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008,0x00000003,
0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040017,0x0000000a,0x00000006,
0x00000002,0x0004001e,0x0000000b,0x00000007,0x0000000a,0x00040020,0x0000000c,0x00000001,
0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040015,0x0000000e,0x00000020,
0x00000001,0x0004002b,0x0000000e,0x0000000f,0x00000000,0x00040020,0x00000010,0x00000001,
0x00000007,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,
0x00000001,0x00000000,0x0003001b,0x00000014,0x00000013,0x00040020,0x00000015,0x00000000,
0x00000014,0x0004003b,0x00000015,0x00000016,0x00000000,0x0004002b,0x0000000e,0x00000018,
0x00000001,0x00040020,0x00000019,0x00000001,0x0000000a,0x00050036,0x00000002,0x00000004,
0x00000000,0x00000003,0x000200f8,0x00000005,0x00050041,0x00000010,0x00000011,0x0000000d,
0x0000000f,0x0004003d,0x00000007,0x00000012,0x00000011,0x0004003d,0x00000014,0x00000017,
0x00000016,0x00050041,0x00000019,0x0000001a,0x0000000d,0x00000018,0x0004003d,0x0000000a,
0x0000001b,0x0000001a,0x00050057,0x00000007,0x0000001c,0x00000017,0x0000001b,0x00050085,
0x00000007,0x0000001d,0x00000012,0x0000001c,0x0003003e,0x00000009,0x0000001d,0x000100fd,
0x00010038
}

Definition at line 183 of file imgui_impl_vulkan.cpp.

◆ __glsl_shader_vert_spv

uint32_t __glsl_shader_vert_spv[]
static

Definition at line 126 of file imgui_impl_vulkan.cpp.

◆ g_BufferMemoryAlignment

VkDeviceSize g_BufferMemoryAlignment = 256
static

Definition at line 75 of file imgui_impl_vulkan.cpp.

◆ g_DescriptorSet

VkDescriptorSet g_DescriptorSet = VK_NULL_HANDLE
static

Definition at line 79 of file imgui_impl_vulkan.cpp.

◆ g_DescriptorSetLayout

VkDescriptorSetLayout g_DescriptorSetLayout = VK_NULL_HANDLE
static

Definition at line 77 of file imgui_impl_vulkan.cpp.

◆ g_FontImage

VkImage g_FontImage = VK_NULL_HANDLE
static

Definition at line 85 of file imgui_impl_vulkan.cpp.

◆ g_FontMemory

VkDeviceMemory g_FontMemory = VK_NULL_HANDLE
static

Definition at line 84 of file imgui_impl_vulkan.cpp.

◆ g_FontSampler

VkSampler g_FontSampler = VK_NULL_HANDLE
static

Definition at line 83 of file imgui_impl_vulkan.cpp.

◆ g_FontView

VkImageView g_FontView = VK_NULL_HANDLE
static

Definition at line 86 of file imgui_impl_vulkan.cpp.

◆ g_MainWindowRenderBuffers

ImGui_ImplVulkanH_WindowRenderBuffers g_MainWindowRenderBuffers
static

Definition at line 91 of file imgui_impl_vulkan.cpp.

◆ g_Pipeline

VkPipeline g_Pipeline = VK_NULL_HANDLE
static

Definition at line 80 of file imgui_impl_vulkan.cpp.

◆ g_PipelineCreateFlags

VkPipelineCreateFlags g_PipelineCreateFlags = 0x00
static

Definition at line 76 of file imgui_impl_vulkan.cpp.

◆ g_PipelineLayout

VkPipelineLayout g_PipelineLayout = VK_NULL_HANDLE
static

Definition at line 78 of file imgui_impl_vulkan.cpp.

◆ g_RenderPass

VkRenderPass g_RenderPass = VK_NULL_HANDLE
static

Definition at line 74 of file imgui_impl_vulkan.cpp.

◆ g_UploadBuffer

VkBuffer g_UploadBuffer = VK_NULL_HANDLE
static

Definition at line 88 of file imgui_impl_vulkan.cpp.

◆ g_UploadBufferMemory

VkDeviceMemory g_UploadBufferMemory = VK_NULL_HANDLE
static

Definition at line 87 of file imgui_impl_vulkan.cpp.

◆ g_VulkanInitInfo

ImGui_ImplVulkan_InitInfo g_VulkanInitInfo = {}
static

Definition at line 73 of file imgui_impl_vulkan.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03