Project Island is an experimental, hot-reloading Vulkan Renderer for Linux and Windows, written in C/C++.
Project Island is an experimental, hot-reloading Vulkan Renderer for Linux and Windows, written in C/C++.
Project Island is an experimental Vulkan Renderer for Linux (Desktop, Raspberry Pi 5) and Windows, written in C/C++.
Island is written for rapid protoyping and tweaking. That's why it allows hot-reloading wherever possible: for C/C++ application code, SLANG, GLSL or HLSL shader code, image assets, and even the renderer's own core modules.
Island is fast to compile. A full rebuild should take [!TIP]
A full list of examples can be found here. Examples can be used as starting point for new projects by using the project generator.
VK_STRUCTURE_TYPE... ever again.Island projects can be scaffolded from templates (or from other,
existing projects) by invoking the project generator python script.
This script lives in the scripts folder, but can be invoked from
anywhere.
# say myapps is where I want to place a new island project
cd island/apps/myapps
# this will create a new project based on the "hello triangle" template
../../scripts/create_project.py mynewproject
# this will create a new project based on the "full screen quad" template
../../scripts/create_project.py mynewquadproject -t quad_template
# this will create a new project based on the project "myoldproject", if it can be found in the current directory
../../scripts/create_project.py anotherproject -T . -t myoldproject# print options and help for project generator via
../../scripts/create_project.py -h…Island projects can be built by combining any number of island modules. Each module aims to do one thing well, and to play nice with others. Modules are automatically hot-reloaded, if a change is detected and hot-reloading is active. Some modules provide their functionality by wrapping well-known external libraries, some are written entirely from scratch. Some of the most useful modules are listed here:
| Module | Wraps | Description |
|---|---|---|
| le_camera | - | interactive, mouse controlled camera |
| le_path | - | draw svg-style paths, parse simplified SVG-style path command lists |
| le_imgui | imgui | graphical user interface |
| le_pixels | stb image | load image files |
| le_png | lodepng | image codec: load and store png files, supports fpnge on linux |
| le_exr | openEXR | image codec: load and store exr files, support for f16 f32 images |
| le_font | stb truetype | truetype glyph sdf, geometry and texture atlas based typesetting |
| le_pipeline_builder | - | build graphics, and compute pipelines |
| le_rtx_pipeline_builder | - | build Khronos RTX raytracing pipelines |
| le_2d | vello-shaders | a fully gpu accelerated 2d drawing context based on vello shaders |
| le_timebase | - | timekeeping, canonical clock for animations |
| le_jobs | - | fiber-based job system |
| le_ecs | - | entity-component-system |
| le_shader_compiler | shaderc | compile GLSL, and HLSL shaders |
| le_slang_shader_compiler | slang | compile and hot-reload Slang shaders and modules |
| le_window | glfw | window i/o system |
| le_swapchain | - | windowed, direct, or straight-to-video output |
| le_renderer | - | record command buffers, evaluate rendergraphs |
| le_video_decoder | - | hardware accelerated video decoding using Vulkan Video API |
| le_backend | - | interact with GPU via Vulkan, manage GPU resources |
| le_screenshot | - | save renderpass images to disk, supports image sequences, and any file format for which there is an image encoder, notably exr, png |
[!TIP]
To use a module, name it as a dependency in your applidation module's
CMakeLists.txtfile; modules may depend on other modules, and the build system will automatically include these dependencies. You can write your own modules - and there is a module template generator which provides you with a scaffold to start from.
Island should run out of the box on a modern Linux system with the current Vulkan SDK and build tools installed. For Windows, build instructions are collected in a separate readme.
Island depends on a few common development tools: CMake, gcc, git, ninja. These are commonly found on a development machine. Island also depends on the Vulkan SDK.
1.4.328I recommend to install the latest Vulkan SDK via a package manager. Follow the installation instructions via: .
On Arch Linux, I recommend installing the following packages via
pacman: shaderc vulkan-devel ninja cmake.
On Fedora, I recommend installing these package dependencies:
dnf install -y wayland-scanner libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel libdrm-devel ninja-build cmake [!IMPORTANT]
If you freshly cloned the Island repository, remember to update submodules before proceeding.
git submodule init
git submodule update --depth=1Then move to the directory of the Island project which you want to compile:
cd apps/examples/hello_triangle/Build using CMake:
mkdir build
cd build
cmake -G Ninja ..
ninjaRun your new Island Application:
./Island-HelloTriangle[!NOTE]
The CMAKE parameter
PLUGINS_DYNAMIClets you choose whether to compile Island as a static binary, or as a thin module with dynamic plugins. Unless you change this parameter, Debug builds will be built thin/dynamic with hot-reloading enabled, and Release builds will produce a single static binary with hot-reloading disabled.
I recommend using the freely available QT Creator IDE,
it allows you to directly open CMake project files, and integrates
pretty seamlessly with the Island workflow: running, hot-reloading,
then setting a breakpoint, and then stepping whilst inspecting state
in the debugger just works. Alternative IDEs are of course available,
and as long as they support CMake project files, should work. When
running an Island app with the debugger in Qt Creator, it's important
to check that Run in terminal is disabled - this can be
specified in the Run Settings dialog.
entrIf you prefer to work without an IDE, but wish a setup where apps get recompiled as soon as a source file changes, the following Linux-based setup is pretty nice:
cd apps/examples/hello_triangle
mkdir build
cd build
cmake -G Ninja ..
# and then
git ls-files ../.. | entr ninja &entr(1) is a great utility, which runs a command on file change. The
last line of the above script causes ninja to run as soon as any of
the files checked into the github repo at hello_triangle change.
Island can compile and run natively on Microsoft Windows - with some caveats. Progress of the Windows port and Windows-specific build instructions etc. are tracked in a separate readme.
[!CAUTION]
Island's API is under active development, expect lots of change. As such, there are no promises that it might be ready or fit for any purpose, and the code here is released in the hope that you might find it interesting.
The initial motivation for writing Island was to experiment with a modern rendering API (Vulkan), to learn by trying out ideas around modern realtime-rendering, and to have a framework to create visual experiments with.
Island has been used for work, too; for example, it helped make an Official Visualizer for OK Go's Once More With Feeling -- Here's a little making of.
No open issues yet, or sync has not completed.