From 5ad340c71c70d55c91eb8bcb9ed70ad18c635ee9 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Mon, 19 Jan 2026 18:40:11 +0100 Subject: sokol_app/gfx.h: vulkan build instructions --- sokol_app.h | 7 +++++++ sokol_gfx.h | 1 + 2 files changed, 8 insertions(+) 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 -- cgit v1.2.3