This is an experimental project and is in actively development. The APIs, implementations and docs may subject to rapid changes. Please don't use this project in production environments.
LunaSDK is a C++ software development framework for real-time rendering applications like video games, interactive multimedia programs, data visualization programs and so on.
Specifications:
- Self-implemented fundamental libraries, including platform abstraction layer, container library, math library and more. No dependency on C++ STL.
- Full dynamic type reflection, including full support for generic types.
- Serialization and deserialization based on reflection, including JSON and XML support.
- Job system and thread pool for asynchronous computing.
- Render Hardware Interface (RHI) targeting Direct3D 12, Vulkan and Metal.
- Window management API.
- Shader compiling APIs that compile HLSL shaders to DXIL, SPIR-V and Metal.
- Low-latency Audio Hardware Interface (AHI).
- Human Interface Device API providing APIs to access input / output devices.
- Asset system and virtual file system for managing assets at runtime.
- File loader for image files, font files and .OBJ files.
- GPU-driven vector graphics rendering.
- Well documented and CI tested.
Designed target platforms:
- Windows (Direct3D 12+/Vulkan 1.0+)
- macOS (Metal 2+)
- Linux (Vulkan) (Not implemented yet.)
- Android (Vulkan 1.0+)
- iOS (Metal 2+)
- Windows 10 version 1703 (OS build 15063) or later.
The following requirements must be satisfied to run LunaSDK with Vulkan rendering backend:
-
Vulkan runtime must be present on the system, and must be supported by your GPU and driver.
- Vulkan runtime is shipped as part of system components on most modern operations systems, including Windows, Linux and Android.
- To check whether your GPU and driver supports Vulkan, consult this database.
- Installation of Vulkan SDK is not required to build LunaSDK with Vulkan rendering backend.
-
VK_KHR_maintenance1extension support, which is mandatory in Vulkan 1.1+. -
VK_KHR_swapchainextension support, which should be supported on all platforms with display screens.
- macOS 10.15 (Catalina) and later.
- Android 11 (SDK Level 31) and later (older versions MAY run LunaSDK, but is not tested).
- iOS 16 and later.
Docs are placed at ./LunaSDK-Docs directory. Use Obsidian to open and read the docs.
Issuespage is available for bug report and feature request (not guaranteed to be satisfied).Discussionspage is available for discussions.- QQ group: 665068249 (Chinese only).
- Email: [email protected]
- Discord: jxmaster.me
- Zhihu: https://www.zhihu.com/people/jx-master
- Bilibili: https://space.bilibili.com/9919368
LunaSDK uses the following third party SDKs:
- Dear ImGui for GUI rendering (MIT License).
- ImGuizmo for rendering gizmos using ImGui (MIT License).
- DirectX Shader Compiler for compiling HLSL shaders (University of Illinois Open Source License).
- STB for image file reading/writing and ttf font file processing (public domain).
- Vulkan Memory Allocator for allocating device memory on Vulkan backend (MIT License).
- Volk for dynamically loading Vulkan interfaces (MIT License).
- D3D12 Memory Allocator for allocating device memory on D3D12 backend (MIT License).
- miniaudio for cross-platform low-level platform audio interface (public domain).
- SPIRV-Cross for generating metal shader code from SPIR-V.
All SDKs are either embedded in the project, or can be fetched automatically by xmake scripts, the user does not need to install them manually.
The following SDKs are not directly used LunaSDK, but part of their design and implementation is referred when developing similar functionalities in LunaSDK:
- jsondiffpatch.net when developing the variant differential library (MIT License).
- DirectXMath when developing the math library (MIT License).
Here are some alternative real-time rendering engines/frameworks that have similar design goals to LunaSDK.
- Sakura Engine developed by SaeruHikari and other contributors (MIT License).
- Horizon Engine developed by harukumo.
- Piccolo Engine developed by Booming Tech and GAMES104 community contributors (MIT License).
- CatDogEngine developed by T-rvw, Hinageshi01 and other contributors (GPL-2.0 License).
LunaSDK is licensed under the zlib/libpng license, see LICENSE.txt for more information.
Say Hi to our mascot, a LunaSDK LOGO with two ellipses that look like eyes of one spherical robot.

