Trying to follow the official Vulkan Tutorial.
Build:
mkdir build
cmake -B build
cmake --build build
Launch:
./build/vulkan-tutorial
Debug:
gdb ./build/vulkan-tutorial
- Open folder in VSCode
- Install extension "CMake Tools" - https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools
- Configure build with "CMake Tools" extension ("Show all Commands" Ctrl+Shift+P):
- CMake: Scan for Kits
- CMake: Select Kit -> select compiler
- CMake: Configure
- Build with "CMake Tools":
- "Show all Commands" (Ctrl+Shift+P) -> CMake: Build
- Press "CMake: Build" button (cog icon, should be on the bottom of the VSCode window on a strip [Status Bar])
- Launch:
- "Show all Commands" (Ctrl+Shift+P) -> CMake: Run Without Debugging
- Press "CMake: Launch the seected target ..." (play icon on a [Status Bar])
- Debug:
- "Show all Commands" (Ctrl+Shift+P) -> CMake: Debug
- Press "CMake: Launch the debugger for the selected target ..." button (bug icon on a [Status Bar])