Library / SDK
DiligentGraphics/DiligentEngine avatar
DiligentGraphics/DiligentEngine

Diligent Engine: one graphics front end across six backends

A modern cross-platform low-level graphics library and rendering framework

4,530 stars393 forksBatchfileApache-2.0

At a glance

What is it?
A cross-platform abstraction layer that puts HLSL and a single API in front of Direct3D 12, Vulkan, Metal and WebGPU, with the legacy Direct3D 11 and OpenGL paths kept alive behind it.
Who is it for?
The abstraction layer is the whole product here, and the README is unusually direct about what that means: HLSL in, one front-end API, six backends, Apache 2.0. Two facts should drive the decision.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Batchfile, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • DiligentGraphics/DiligentEngine4,530 ★ · +64
Star history
Repository2026-10-072026-11-26
DiligentGraphics/DiligentEngine4.5k4.5k

64 Stars in the last 50 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

An abstraction layer rather than an engine in the game engine sense

The project describes itself as a lightweight, high-performance graphics API abstraction layer and rendering framework for cross-platform development. That wording is doing real work, and it is worth holding on to. It is the layer that sits between renderer code you write and the native graphics API of whichever machine you are targeting.

The modern tier is Direct3D 12, Vulkan, Metal and WebGPU. Behind it the project keeps the older paths alive, Direct3D 11, OpenGL, OpenGL ES and WebGL, so a single codebase can still cover hardware and browsers that never get the newer API. The licence is Apache 2.0, with `License.txt` at the repository root, which is the permissive end of the scale and matters if you intend to ship the layer inside a commercial engine.

One oddity worth knowing before browsing the code: GitHub reports the dominant language of this repository as Batchfile. The README describes the API as C/C++/C#, so the language label tells you little about the codebase here.

Reading the platform matrix and its numbered footnotes

The centrepiece of the README is a table that crosses nine platform rows against six API columns, plus a build status column. Windows carries D3D11, D3D12, OpenGL and GLES, Vulkan and WebGPU. Universal Windows carries only D3D11 and D3D12. Linux carries OpenGL and GLES and Vulkan. Android carries OpenGL and GLES and Vulkan. macOS carries OpenGL and GLES, Vulkan and Metal. iOS carries OpenGL and GLES, Vulkan and Metal, tvOS carries Vulkan and Metal, visionOS carries Metal and nothing else, and a Web row carries OpenGL/GLES and WebGPU.

Two things follow from reading it closely. Direct3D appears in exactly two rows, Windows and Universal Windows, so this is not a way to share Direct3D 12 code with a Mac. And the smaller platforms are narrow: a single filled cell for visionOS is not a rounding error, it is the actual support surface.

Several cells carry numbered footnotes: Vulkan on macOS, iOS and tvOS requires a portability implementation such as MoltenVK, Metal is available under a commercial license, and native WebGPU on Windows uses Dawn's Direct3D12 backend, enabled with `-DDILIGENT_NO_WEBGPU=OFF`. What the table does settle is the CI layout, because each row links a build status badge and the workflow names in those URLs are build-windows.yml, build-linux.yml, build-android.yml, build-apple.yml and build-emscripten.yml. Alongside that sits an Appveyor badge at the top of the README and an `appveyor.yml` in the tree, which points to a second pipeline.

HLSL as the shared shading language, native formats behind it

The README states the arrangement plainly: a consistent front-end API, HLSL as the universal shading language, and support for the platform specific shader formats GLSL, MSL, WGSL, DirectX bytecode and SPIR-V for optimised performance. The feature list adds that HLSL shaders are shared across platforms and backends, subject to their supported shader stages and features.

The feature list also names shader resource reflection and automatic shader resource binding.

What sits in the four project directories at the root

The tree is short and it divides cleanly. `DiligentCore` is the abstraction itself. `DiligentFX` holds the higher level rendering components. `DiligentSamples` is the tutorial set. `DiligentTools` is the conversion and asset tooling.

Alongside those four the root carries `Doc/`, `Media/`, `Tests/`, `.github/`, `.vscode/`, `CMakeLists.txt`, `.gitmodules`, `.clang-format`, `ReleaseHistory.md`, `Troubleshooting.md` and `appveyor.yml`. Several of those deserve a note. A `.clang-format` means code style is pinned by a file rather than left to argument. A `.gitmodules` means dependencies come in as submodules, which is the usual source of first build trouble. `ReleaseHistory.md` and `Troubleshooting.md` sitting at the root is a good sign about how the project handles its own churn.

Three releases: .NET bindings, post-processing effects, WebGPU

The three most recent releases are v2.5.4, dated 2023-08-08, v2.5.5, dated 2024-05-06, and v2.5.6, dated 2024-09-02.

Where the README stops and what it does not settle

It is worth being clear about the gaps, because they are the parts you will spend your own time on. The README carries badges, a platform matrix and a description of the shading model. It also links to the documentation at `diligentgraphics.github.io/docs`, the Discord invite, and the project site at `diligentgraphics.com/diligent-engine/`.

The `Troubleshooting.md` and `ReleaseHistory.md` files at the root are worth reading early.

On activity, the last push was on 2026-10-16 and the repository is not archived, on the `master` branch. The newest tag, v2.5.6, is dated 2024-09-02. That gap of roughly two years between the tip and the most recent release is the single most consequential fact for anyone choosing a version. There are 23 open issues against that, which is a small number for a project of this age and scope.

Editorial conclusion

The abstraction layer is the whole product here, and the README is unusually direct about what that means: HLSL in, one front-end API, six backends, Apache 2.0. Two facts should drive the decision. The newest tag, v2.5.6, is dated 2024-09-02, and the last push was on 2026-10-16, so master runs roughly two years past the newest tag and a pinned release is not the tip. The first hour with this project goes into getting CMake, the submodules and a tutorial sample running before anything else. If you already write HLSL and want one renderer across Windows, Linux, macOS and the web, that is the case it is built for.

Frequently asked questions

What is Diligent Engine?

It is a cross-platform graphics API abstraction layer and rendering framework, not a game engine. It puts one front-end API and HLSL in front of Direct3D 12, Vulkan, Metal and WebGPU, and keeps Direct3D 11, OpenGL, OpenGL ES and WebGL behind the same interface. It is distributed under the Apache 2.0 licence.

Which platforms and graphics APIs does Diligent Engine support?

The README matrix lists nine platforms. Windows gets D3D11, D3D12, OpenGL and GLES, Vulkan and WebGPU; Universal Windows gets D3D11 and D3D12 only. Linux and Android get OpenGL and GLES plus Vulkan. macOS and iOS get OpenGL and GLES, Vulkan and Metal, tvOS gets Vulkan and Metal, visionOS has Metal alone, and Web gets OpenGL/GLES and WebGPU. Vulkan on Apple platforms needs a portability implementation such as MoltenVK, and Metal is available under a commercial license. Direct3D is confined to Windows.

Does Diligent Engine use HLSL or GLSL for shaders?

HLSL is the universal shading language you author in. HLSL shaders are shared across platforms and backends, subject to their supported shader stages and features, and the README also lists support for the platform-specific formats GLSL, MSL, WGSL, DirectX bytecode and SPIR-V.

Can I use Diligent Engine from C# or .NET?

The README lists C/C++/C# for the API; see the documentation at diligentgraphics.github.io/docs for how to use it from .NET.

Official sources

  1. DiligentGraphics/DiligentEngine on GitHub
  2. License: Apache-2.0
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/diligentgraphics-diligentengine.svg)](https://hysenlabs.com/projects/diligentgraphics-diligentengine)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/diligentgraphics-diligentengine.svg)](https://hysenlabs.com/projects/diligentgraphics-diligentengine)

Was this useful?