An immediate-mode C++20 GUI library for editors and tools,
with docking, the controls tools need and CSS themes, running on your GPU.
Guides | API reference | Wiki | Examples | Changelog
TachyonUI is for building tools: game and level editors, audio editors, image and 3D tools. It opens its own windows out of the box, on Windows, Linux and macOS, and can also be embedded in an application that already has a Vulkan, Direct3D 12 or Metal renderer.
| Docking and windows | Controls | CSS themes |
|---|---|---|
| Dock, tab and tear off panels into OS windows. Menus, tooltips, drag and drop. | Fields, sliders, color and gradient editors, tables, trees, list and grid views, node graphs. | Dark and light palettes, UI and font scaling, your own stylesheets, reloaded while the app runs. |
| Layout | Text | Standalone or embedded |
| Flexbox and grid, in CSS pixels scaled by the UI scale. | Shaping, bidi and font fallback for most scripts. | Its own windows by default, or inside your Vulkan, Direct3D 12 or Metal renderer. |
Renders with Vulkan by default.
- Windows x64
- Visual Studio 2026 with CMake 4.2 or newer, or Visual Studio 2022 with CMake 3.22 or newer
- The Vulkan SDK 1.4.341 or newer, for its Slang shader compiler (or an older SDK and a Slang release 2026.1 or newer)
- Git with Git LFS (the fonts are stored in LFS)
- A GPU with Vulkan 1.3, on a current driver:
- NVIDIA GeForce GTX 750 or 900 series, or newer
- AMD Radeon RX 400 series, or newer
- Intel HD or UHD Graphics 500 or 600 (6th-gen Core), Iris Xe or Arc, or newer
- Optional: the Direct3D 12 backend (no extra packages)
- Build it in with the CMake option
-DTACHYON_D3D12=ON - Pick it in your app with
InitializeOptions::graphicsAPI = GraphicsAPI::D3D12; in the showcase, with--graphics d3d12 - It needs one of these GPUs, on a current driver:
- NVIDIA GeForce GTX 900 series, or newer
- AMD Radeon R9 285, R9 380 or R9 Fury, Radeon RX 400 series, or newer
- Intel Iris Plus (10th-gen Core "Ice Lake"), Iris Xe or Arc, or newer; not the HD or UHD Graphics of 6th to 10th-gen Core
- Build it in with the CMake option
- Optional: the SDL GPU backend, on SDL's Vulkan or Direct3D 12 driver (no extra packages)
- Build it in with the CMake option
-DTACHYON_SDLGPU=ON - Pick it in your app with
InitializeOptions::graphicsAPI = GraphicsAPI::SDLGPU; in the showcase, with--graphics sdlgpu
- Build it in with the CMake option
Renders with Vulkan by default.
- Linux x64
- GCC 13 or newer, or Clang 17 or newer
- CMake 3.22 or newer and Ninja
- The X11 and Wayland development packages SDL3 needs (list for Ubuntu)
- The Vulkan SDK 1.4.341 or newer, or your distribution's Vulkan packages and a Slang release 2026.1 or newer
- Git with Git LFS (the fonts are stored in LFS)
- A GPU with Vulkan 1.3, on a current driver:
- NVIDIA GeForce GTX 750 or 900 series, or newer, on NVIDIA's driver
- AMD Radeon RX 400 series, or newer, on Mesa
- Intel HD or UHD Graphics 500 or 600 (6th-gen Core), Iris Xe or Arc, or newer, on Mesa
- Optional: the SDL GPU backend, on SDL's Vulkan driver (no extra packages)
- Build it in with the CMake option
-DTACHYON_SDLGPU=ON - Pick it in your app with
InitializeOptions::graphicsAPI = GraphicsAPI::SDLGPU; in the showcase, with--graphics sdlgpu
- Build it in with the CMake option
Renders with Metal by default.
- macOS 13.3 or newer
- Apple Clang: Xcode or just its Command Line Tools (
xcode-select --install) - CMake 3.22 or newer and Ninja (
brew install cmake ninja git-lfs) - A Slang release 2026.1 or newer for its
slangc(it's not in Homebrew): unpack it and putslangcon thePATH, or setSLANGCto it - Git with Git LFS (the fonts are stored in LFS)
- A GPU with Metal 3:
- every Apple silicon Mac
- on an Intel Mac: AMD Radeon Vega, Radeon 5000 or 6000 series, or Intel UHD Graphics 630, or newer
- Optional: the SDL GPU backend, on SDL's Metal driver (no extra packages)
- Build it in with the CMake option
-DTACHYON_SDLGPU=ON - Pick it in your app with
InitializeOptions::graphicsAPI = GraphicsAPI::SDLGPU; in the showcase, with--graphics sdlgpu
- Build it in with the CMake option
- Optional: the Vulkan backend, through MoltenVK (the Vulkan SDK, or Homebrew's
vulkan-headers,vulkan-loaderandmolten-vk)- Build it in with the CMake option
-DTACHYON_VULKAN=ON - Pick it in your app with
InitializeOptions::graphicsAPI = GraphicsAPI::Vulkan; in the showcase, with--graphics vulkan
- Build it in with the CMake option
git clone --recursive https://github.com/LogicalError/TachyonUI.git
cd TachyonUI| Build | Run (from any folder) | |
|---|---|---|
| Windows | build.bat |
bin\Debug\showcase.exe |
| Linux and macOS | ./build.sh |
bin/Debug/showcase |
build.bat Release (or ./build.sh Release) builds the Release configuration into bin/Release.
The scripts use the presets in CMakePresets.json, which Visual Studio, VS Code and CLion
also pick up.
The CMake options and how to run the tests are on the wiki: Building and Running the showcase and tests.
You describe the whole UI every frame, and the library keeps the state.
void OnGUI() override
{
if (BeginWindow(windowID, "Hello", LayoutOverride{}.Size(360, 160)))
{
Label("Name"); Field(name);
Button("Greet", [this] { greeting = "Hello, " + name + "!"; });
Text(greeting);
}
EndWindow(); // always, whatever BeginWindow returned
}The full program is examples/hello_world/hello_world.cpp. The frame model, IDs and the Begin/End rules are in docs/overview.md.
Each example is a folder in examples/, and docs/examples.md
walks through them.
| Example | Shows |
|---|---|
hello_world |
A window with a text field and buttons |
controls |
The common controls, as label/value rows |
docking |
Panels in a dock layout |
custom_theme |
Your own CSS, dark and light palettes, font scaling |
host_device |
Running on your Vulkan device and showing an image it renders |
showcase |
An editor-style app with most of the library in its panels (the screenshot above) |
tutorial |
The tutorial's app: two docked panels, with buttons and fields |
If you're new to TachyonUI, the tutorial goes from an empty folder to an app with docked panels, buttons and fields.
find_package(TachyonUI 1.1 CONFIG REQUIRED) # after cmake --install
# or: add_subdirectory(external/TachyonUI)
target_link_libraries(my_app PRIVATE TachyonUI::gui_controls)The shaders, default themes and fonts are built into the library and SDL is linked statically, so there are no extra files or DLLs to ship. Packaging, subprojects, your own themes and system libraries are covered in docs/integration.md.
This part is optional: by default the library creates its own device and windows. If your application already renders with Vulkan, TachyonUI can work with it (Direct3D 12, SDL GPU and Metal hosts can share their device too):
- Share your Vulkan device. One instance, device and queue; the GUI only destroys what it created.
- Show an image you render, such as a 3D viewport, as a control.
- Render the UI into an image instead of an OS window, and pass it the input yourself.
The synchronization rules and code are in Using your own Vulkan device.
Contributing | Security | Sponsor on GitHub | Patreon
MIT licensed. Bundled third-party code, fonts and icons keep their own licenses, listed in THIRD_PARTY_NOTICES.txt.

