imgui: Vulkan examples don't render UI on MacOS
Version/Branch of Dear ImGui:
Version: 1.76 WIP (17502) Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4) Operating System: macOS Mojave 10.14.6 Vulkan SDK Version: 1.2.131.2
My Issue/Question:
Dear ImGui is a wonderful library that I am really fond of, but I’ve encountered a problem with it.
I tried to run glfw+vulkan example on my Mac system, but the UI didn’t show up. It works fine on my Linux machine and glfw+opengl3 example works well on both systems.
My original intention was to integrate Dear ImGui in my engine using this walkthrough, but it doesn’t differ much from the code in the example.
Screenshots/Video
How it looks on my Mac

How it looks on my Linux computer

Standalone, minimal, complete and verifiable example:
Steps to reproduce:
- Clone the repository with
git clone https://github.com/ocornut/imgui
- Move to the examples’s directory
cd imgui/examples/example_glfw_vulkan/
- Edit CMakeLists.txt and build the project in a separate directory (My version of the file)
mkdir build && cd build
cmake ..
make
- Run the example
./example_glfw_vulkan
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (6 by maintainers)
Installing Vulkan SDK 1.2.135.0 has solved the issue.
@Hovushka Does it work if you use SDL2 instead of GLFW?