Skip to content

Building

Getting Started

Before you can build Daxa, you must first walk through the dependency installation step.

Building Daxa

Windows

Terminal window
cmake --preset=cl-x86_64-windows-msvc
cmake --build --preset=cl-x86_64-windows-msvc-debug

Linux

Terminal window
cmake --preset=gcc-x86_64-linux-gnu
cmake --build --preset=gcc-x86_64-linux-gnu-debug

Running a sample

Windows

Terminal window
./build/cl-x86_64-windows-msvc/tests/Debug/daxa_test_2_daxa_api_5_swapchain

Linux

Terminal window
./build/gcc-x86_64-linux-gnu/tests/Debug/daxa_test_2_daxa_api_5_swapchain

Custom Validation

Note: The following steps are only meant for Daxa maintainers. They are not needed if you simply want to use Daxa in a project.

You must build this repo (Debug is fine; you get symbols)

Terminal window
git clone https://github.com/KhronosGroup/Vulkan-ValidationLayers

Open up Vulkan Configurator and add a new layer profile:Screenshot 2022-10-02 110620

Add a user-defined path:Screenshot 2022-10-02 110800

For me, it’s at C:/dev/projects/cpp/Vulkan-ValidationLayers/build/debug-windows/layersScreenshot 2022-10-02 110934

And then override the validation layer:Screenshot 2022-10-02 111055

And that should be it!