Installing dependencies
This guide walks you through installing the tools you need for Daxa development on Windows and Linux. If you’re experienced with Vulkan or C++, you may already have some of these tools.
Windows
1. Visual Studio
We’ll use the Visual Studio compiler on Windows (instead of Clang) due to current issues with Clang on Windows. You can install Visual Studio from the official website. Make sure you select the “Desktop development with C++” component during the setup.
2. Clang & Ninja
Install Chocolatey (Windows package manager) from an elevated (administrator) PowerShell session:
Terminal window Set-ExecutionPolicy Bypass -Scope Process -Force; `[System.Net.ServicePointManager]::SecurityProtocol = `[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))Install LLVM (Clang) and Ninja
Terminal window choco install llvmchoco install ninja
3. Misc Tools
Install the following:
Download each installer from their official site and follow the wizard to complete installation.
4. Vulkan SDK
Download the Vulkan SDK for Windows. During installation, uncheck “Debuggable Shader API Libraries” to avoid conflicts with glslang.
Linux
1. Install Basic Tools
sudo apt updatesudo apt install ninja-build clang cmake git
sudo pacman -Syusudo pacman -S ninja-build clang cmake git
2. Vulkan SDK
Follow the LunarG Vulkan SDK Installation Guide for detailed steps on your distribution.
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.ascsudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-noble.list http://packages.lunarg.com/vulkan/lunarg-vulkan-noble.listsudo apt updatesudo apt install vulkan-sdk
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.ascsudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.listsudo apt updatesudo apt install vulkan-sdk
If you’re using another distribution, see LunarG’s official instructions.
Installing VSCode (Windows & Linux)
We’ll use Visual Studio Code as our code editor for the tutorial. Other IDEs (e.g., CLion) can also work, but the instructions may differ. For a smoother experience, use VSCode with the following extensions:
- C/C++ Extension Pack (
ms-vscode.cpptools-extension-pack
) - GLSL Lint (
dtoplak.vscode-glsllint
)
You’re now ready to set up your Daxa development environment. Next, we’ll walk through configuring VSCode and creating your first Daxa project.