Repository navigation
glue: add Vulkan renderer variant for Windows (VK_KHR_win32_surface) - #36
Merged
Merged
Conversation
Adds a Vulkan build variant of the Windows platform glue, mirroring the existing Linux (xorg/wayland) Vulkan glue: - window: new constructor that does not create a WGL context (the Vulkan device owns the swapchain); expose the HWND - application: create the Vulkan instance (VK_KHR_SURFACE, VK_KHR_WIN32_SURFACE), physical device and logical device (VK_KHR_SWAPCHAIN); create a VK_KHR_win32_surface from the window handle in make_window() and construct the Vulkan render context - build: ruisapp-vulkan CMake variant and test app on Windows, ruisapp-vulkan rule in the makefile
igagis
self-requested a review
November 25, 2026 17:57
igagis
reviewed
Nov 25, 2026
igagis
reviewed
Nov 25, 2026
igagis
reviewed
Nov 25, 2026
igagis
reviewed
Nov 25, 2026
- cmake: drop the name variable, use PROJECT_NAME in place - cmake: explicit WIN32 and EMSCRIPTEN branches; FATAL_ERROR on unknown OS - windows: rename make_device() to make_vulkan_device() - windows: explain the 1x1 hidden window in a comment (same as wayland) - makefile: do not build the vulkan variant (the mingw CI has no vulkan headers; the CMake/vcpkg build is the one that provides it)
The Vulkan renderer does not use a shared GL context, so the shared_gl_context_native_window member and the 1x1 dummy window it required are dropped from the Vulkan build. The native_window constructor no longer takes the shared context pointer.
igagis
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Vulkan build variant of the Windows platform glue, mirroring the existing Linux (xorg/wayland) Vulkan glue: