SGLib
SGLib is a graphics middleware library for C/C++. Based on D3D12 it provides APIs close to D3D11 in a couple with feautures and capabilities of modern hardware, like ray tracing, async compute, async scheduling, meshlet shading, variable rate shading etc.
Install / Use
/learn @AShevchenko-23/SGLibREADME
SGLib 0.0.9.0 (Alpha)
SGLib is a graphics middleware library for C/C++. Based on D3D12 it provides APIs close to D3D11 in a couple with feautures and capabilities of modern hardware, like ray tracing, async compute, async scheduling, meshlet shading, variable rate shading etc. It uses best practices of graphics APIs to hide low-level management and make developers to focus on features and algorithms. See Getting started sections for more details.
Key features
- Built-In frames resolving and works sync;
- Built-In resource states tracking;
- Support third party debug tools, like Microsoft PIX and NVidia NSight Aftermath;
- Asynchronous scheduling (thread-safe work with command lists, resource usage etc);
- Asynchronous execution (AsyncCompute);
- Ray tracing;
- Variable rate shading;
- Meshlet rendering;
Release notes
Current 0.0.9.1 (5/6/2025)
- SgGetFormatSizeBits function;
- Fixed border color setting for static samplers;
- Fixed 3D textures creation;
See also version history.
WIP/TODO
- HDR output
- Tiled resources
- Pipeline state caches
Platforms
SGLib supports D3D12 on Windows only atm. In the future, if there is demand for it, there are also plans to support game consoles, Vulkan for Android and Linux.
Package
SGLib package contains C/C++ headers, binaries, documentation and samples. Every back-end has two builds implementing developer and release version:
- SGLib_<API_NAME>_dev.lib
- SGLib_<API_NAME>_dev.dll
- SGLib_<API_NAME>.lib
- SGLib_<API_NAME>.dll
Binary pairs that have _dev ending in the name are optimized for developing and debugging workflows, perform more detailed validation, support third-party debug tools such as Microsoft PIX and NVidia NSight Aftermath.
Contacts
For questions, feedback and suggestions, please email ashevchenko.sglib@gmail.com
License
SGLib is licensed under the MIT License, see LICENSE.txt for more details.
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
