Vulkan is a low-overhead, cross-platform 3D graphics and computing API. It provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
- Download the installer from the official LLVM website.
- Run the installer and follow the on-screen instructions.
- Add LLVM to your system PATH:
- Open the Start Menu and search for "Environment Variables".
- Click on "Edit the system environment variables".
- In the System Properties window, click on the "Environment Variables" button.
- In the Environment Variables window, find the "Path" variable in the "System variables" section and click "Edit".
- Click "New" and add the path to the LLVM bin directory (e.g.,
C:\Program Files\LLVM\bin
). - Click "OK" to close all windows.
- Download the Vulkan SDK from the LunarG Vulkan SDK website.
- Run the installer and follow the on-screen instructions.
- Add Vulkan SDK to your system PATH:
- Open the Start Menu and search for "Environment Variables".
- Click on "Edit the system environment variables".
- In the System Properties window, click on the "Environment Variables" button.
- In the Environment Variables window, find the "Path" variable in the "System variables" section and click "Edit".
- Click "New" and add the path to the Vulkan SDK bin directory (e.g.,
C:\VulkanSDK\<version>\Bin
). - Click "OK" to close all windows.
- Open a terminal (Command Prompt or PowerShell).
- Navigate to the project directory:
- Create a build directory and navigate into it:
mkdir build
cd build
- Run CMake to configure the project:
cmake ..
- Build the project using CMake:
cmake --build .
- Run the executable:
./executable/<example_name>.exe