diff options
| author | Andre Weissflog <floooh@gmail.com> | 2026-01-19 18:40:11 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2026-01-19 18:40:11 +0100 |
| commit | 5ad340c71c70d55c91eb8bcb9ed70ad18c635ee9 (patch) | |
| tree | b002c31d5a9fb7cd32b51993687c6b5b82399b52 | |
| parent | 133d1ddbcd59efc6cb8a5731b84a3c9f8b9ec00a (diff) | |
sokol_app/gfx.h: vulkan build instructions
| -rw-r--r-- | sokol_app.h | 7 | ||||
| -rw-r--r-- | sokol_gfx.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h index a15a97ed..d46ec9df 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -23,6 +23,7 @@ #define SOKOL_D3D11 #define SOKOL_METAL #define SOKOL_WGPU + #define SOKOL_VULKAN #define SOKOL_NOAPI Optionally provide the following defines with your own implementations: @@ -79,11 +80,17 @@ - with SOKOL_GLCORE: GL - with SOKOL_GLES3: GLESv2 - with SOKOL_WGPU: a WebGPU implementation library (tested with webgpu_dawn) + - with SOKOL_VULKAN: vulkan - with EGL: EGL - on Android: GLESv3, EGL, log, android - on Windows: - with MSVC or Clang: library dependencies are defined via `#pragma comment` - with SOKOL_WGPU: a WebGPU implementation library (tested with webgpu_dawn) + - with SOKOL_VULKAN: + - install the Vulkan SDK + - set a header search path to $VULKAN_SDK/Include + - set a library search path to $VULKAN_SDK/Lib + - link with vulkan-1.lib - with MINGW/MSYS2 gcc: - compile with '-mwin32' so that _WIN32 is defined - link with the following libs: -lkernel32 -luser32 -lshell32 diff --git a/sokol_gfx.h b/sokol_gfx.h index 8ab90e9e..f1e8e285 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -70,6 +70,7 @@ - on iOS with GL: OpenGLES - on Linux with EGL: GL or GLESv2 - on Linux with GLX: GL + - on Linux with Vulkan: vulkan - on Android: GLESv3, log, android - on Windows with the MSVC or Clang toolchains: no action needed, libs are defined in-source via pragma-comment-lib - on Windows with MINGW/MSYS2 gcc: compile with '-mwin32' so that _WIN32 is defined |