Vulkan & ImGUI 中的HelloWorld流程

基于Vulkan+ImGUI的正常工作流开发记录

流程总纲: 1. 创建GLFWWindow 2. 初始化Vulkan设备: 1. Vulkan Instance 2. Select GPU 3. Select graphics queue family 4. Create Logical Device (with 1 queue) 5. Create Descriptor Pool 3. 绑定Vulkan设备和GLFWWindow的Surface 4. 调用Imgui高层函数ImGui_ImplVulkanH_CreateWindow,创建RenderPass,CommandPool等数据集。 5. Setup ImGui context & style 6. Setup Platform/Renderer bindings(执行ImGui_ImplVulkan_Init) 7. 通过执行ImGui_ImplVulkan_CreateFontsTexture来设置ImGui的字体,参数是CommandBuffer 8. MainLoop 1. Start the ImGui Frame 2. GUI操作,例如ImGUI::Text("Hello World!"); 3. Note.ImGUI以Begin方法开始End方法结束为一个窗口 4. Rendering 9. 结束程序,CleanUp

tags: Log