This examle uses a fork of zgui to demonstrate how to possibly integrate with the SDL3 GPU API. It depends on the latest version of SDL on github because zsdl doesn't have bindings for the new GPU API (at the moment of writing this).
This example is based on this one from imgui and this one from the zig-gamedev samples.
Finally, this was only tested on Windows, but should work on other platforms.
# 1. Fetch the SDL repo
git submodule init
git submodule udpate
# 2. Build the SDL3 .dll
cd SDL
mkdir build && cd build
cmake -G "MinGW Makefiles" .. && cmake --build .
cd ../..
# 3. Run the example
zig build run