Building


Getting Started

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

Building Daxa

Windows

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

Linux

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

Running a sample

Windows

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

Linux

./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)

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

Open up Vulkan Configurator and add a new layer profile:

Add a user-defined path:

For me, it's at C:/dev/projects/cpp/Vulkan-ValidationLayers/build/debug-windows/layers

And then override the validation layer:

And that should be it!