Functions | Variables
dependencies/third-party/imgui/src/examples/example_sdl_vulkan/main.cpp File Reference
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_vulkan.h"
#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>
#include <SDL_vulkan.h>
#include <vulkan/vulkan.h>
Include dependency graph for dependencies/third-party/imgui/src/examples/example_sdl_vulkan/main.cpp:

Go to the source code of this file.

Functions

static void check_vk_result (VkResult err)
 
static void CleanupVulkan ()
 
static void CleanupVulkanWindow ()
 
static void FramePresent (ImGui_ImplVulkanH_Window *wd)
 
static void FrameRender (ImGui_ImplVulkanH_Window *wd)
 
int main (int, char **)
 
static void SetupVulkan (const char **extensions, uint32_t extensions_count)
 
static void SetupVulkanWindow (ImGui_ImplVulkanH_Window *wd, VkSurfaceKHR surface, int width, int height)
 

Variables

static VkAllocationCallbacks * g_Allocator = NULL
 
static VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE
 
static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE
 
static VkDevice g_Device = VK_NULL_HANDLE
 
static VkInstance g_Instance = VK_NULL_HANDLE
 
static ImGui_ImplVulkanH_Window g_MainWindowData
 
static uint32_t g_MinImageCount = 2
 
static VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE
 
static VkPipelineCache g_PipelineCache = VK_NULL_HANDLE
 
static VkQueue g_Queue = VK_NULL_HANDLE
 
static uint32_t g_QueueFamily = (uint32_t)-1
 
static bool g_SwapChainRebuild = false
 
static int g_SwapChainResizeHeight = 0
 
static int g_SwapChainResizeWidth = 0
 

Function Documentation

◆ check_vk_result()

static void check_vk_result ( VkResult  err)
static

◆ CleanupVulkan()

static void CleanupVulkan ( )
static

◆ CleanupVulkanWindow()

static void CleanupVulkanWindow ( )
static

◆ FramePresent()

static void FramePresent ( ImGui_ImplVulkanH_Window wd)
static

◆ FrameRender()

static void FrameRender ( ImGui_ImplVulkanH_Window wd)
static

◆ main()

int main ( int  ,
char **   
)

◆ SetupVulkan()

static void SetupVulkan ( const char **  extensions,
uint32_t  extensions_count 
)
static

◆ SetupVulkanWindow()

static void SetupVulkanWindow ( ImGui_ImplVulkanH_Window wd,
VkSurfaceKHR  surface,
int  width,
int  height 
)
static

Variable Documentation

◆ g_Allocator

VkAllocationCallbacks* g_Allocator = NULL
static

◆ g_DebugReport

VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE
static

◆ g_DescriptorPool

VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE
static

◆ g_Device

VkDevice g_Device = VK_NULL_HANDLE
static

◆ g_Instance

VkInstance g_Instance = VK_NULL_HANDLE
static

◆ g_MainWindowData

ImGui_ImplVulkanH_Window g_MainWindowData
static

◆ g_MinImageCount

uint32_t g_MinImageCount = 2
static

◆ g_PhysicalDevice

VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE
static

◆ g_PipelineCache

VkPipelineCache g_PipelineCache = VK_NULL_HANDLE
static

◆ g_Queue

VkQueue g_Queue = VK_NULL_HANDLE
static

◆ g_QueueFamily

uint32_t g_QueueFamily = (uint32_t)-1
static

◆ g_SwapChainRebuild

bool g_SwapChainRebuild = false
static

◆ g_SwapChainResizeHeight

int g_SwapChainResizeHeight = 0
static

◆ g_SwapChainResizeWidth

int g_SwapChainResizeWidth = 0
static


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