DiligentEngine
shaders
Our great sponsors
DiligentEngine | shaders | |
---|---|---|
24 | 9 | |
3,310 | 472 | |
1.9% | - | |
9.4 | 1.8 | |
2 days ago | about 2 years ago | |
Batchfile | C++ | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
DiligentEngine
-
We Are Doomed: A pessimistic point of view of "modern software engineering"
Neither Apple nor Microsoft want any usable multiplatform graphics API. For this reason, none of them delivers such a thing.
If you want a multiplatform graphics API, you should use a library which implements such API on top of these native OS-specific APIs.
I have good experience with that one: http://diligentgraphics.com/diligent-engine/ I’ve used it couple times on Windows with D3D12 backend, and on Linux with GLES 3.1 backend.
-
The Ultimate Cross-Platform Rendering Engine?
Diligent Engine: They say their engine is the successor of bgfx, but I'm not rly into that topic.
-
Collecting the best C++ practices
Diligent Engine. A Modern Cross-Platform Low-Level 3D Graphics Library and Rendering Framework Tweet.
- Diligent Engine 2.5.3 is out: path tracing tutorials, render state cache, hot shader reload and more
- Good repos for beginners to browse that follow best modern C++ practices (including testing, static analysis etc...)
- Check out a new path tracing tutorial in Diligent Engine that shows how to use a render state packager to build pipeline states off-line and pack them into archive so that they can be loaded fast at run time.
-
Improving my CPP skills
Read other people's code (I recommend modern small to medium sized github projects, because large ones can be overwhelming) or else you will forever stay in your bubble of how things are done. For example, I had learned a thing or two by using (and code browsing) diligent engine's source.
-
What is a good absolutely minimalist game/rendering engine?
Diligent Engine
-
A Rant on Developers
I'm not speaking out of my ass, either, I have very actively followed low-level development being done towards open-source engines such as Diligent and Wicked. I personally am a contributor to the latter engine, as well. It is baffling to me that independent developers don't support this platform.
- Diligent Engine v2.5.2 is out: Render State Notation, State Object Serialization, Off-line packager tool and more
shaders
-
Adding HLSL and DirectX Support to Clang and LLVM
It may be close to a technical impossibility, but the Circle compiler by Sean Baxter is attempting it. That's based on an aggressive "de-pointerization" (see [1] in particular for details). There's also academic work[2] to compile C++ to shaders. I agree that it's an open question how well that will work out.
Also as pointed out elsethread, now that buffer device address is starting to land, the friction to compile pointer-intense C++ code should decrease even more. These are exciting times!
[1]: https://github.com/seanbaxter/shaders#approaching-circle-sha...
[2]: https://arxiv.org/abs/2109.14682
-
Writing Vulkan SPIR-V shaders in C++?
You can use circle c++ shader https://github.com/seanbaxter/shaders but it's limited to look linux afaik?
-
Where to Learn Vulkan for parallel computation (with references to porting from CUDA)
First we have Circle C++ shaders, which pretty much would tick all the boxes. Problem is it's closed source and only compiles host code on linux. Closed source isn't the biggest of issues actually, but prevents anyone from fixing the developers issue with interfacing with the windows ABI and getting the thing working on windows (which itself isn't something they are able to fix because windows doesn't provide the documentation to work with their ABI). However you could use it separately to compile your SPIR-V for windows since SPIR-V doesn't care about platform itself.
-
Has anyone seriously considered C++AMP? Thoughts / Experiences?
Yes, Vulkan GPU source is split, though technically in a way that makes it more similar to CUDA. Vulkan uses an intermediate format instead of consuming text code directly, meaning new features are easier to add and frontend code doesn't need to be passed to the vendors driver compiler. SPIR-V is like DXIL or PTX code for CUDA, basically LLVM IR for GPUs. The CUDA compiler compiles your device code into PTX code, and it's what enables you to have "non split" source code. There's even an option to have separate PTX code in CUDA. There are few projects that aim to bring Vulkan SPIR-V into source, including Rust GPU for rust (though it will still have to be in a separate file) and Circle C++ shader for C++.
-
Circle, the C++ Automation Language
My favorite use is putting user-defined attributes on data members, and using reflection to generate a UI to manipulate those values. I do it with these shadertoys:
https://github.com/seanbaxter/shaders#reflection-and-attribu...
Just mark your declarations up with custom attributes:
-
Unified Shader Programming in C++
I'm confused what is novel about this paper. We already have unified shader programming with circle C++, with way more features, and instead of having an SPIR-V compiler, they made a source to source compiler... We have quite a few of those.
I think shader specialisation is handled pretty well in circle. Since you can essentially run arbitrary C++ code at compile time, selection and specialisation of a shader can even depend on hardware specific benchmarks. There is an extensive repo with examples here: https://github.com/seanbaxter/shaders. One example decodes a sprite sheet stored as a png at compile time and creates a specialised compute shader for it. You can also easily implement a control UI based on reflection of uniform shader parameters.
-
Embark Studios has rewritten all their renderer's shader code from GLSL to Rust
There's a project doing something similar for C++ called Circle which is pretty incredible. In its core Circle is an extension of standard C++ which adds a ton of metaprogramming facilities and other productivity enhancing features, things the base language sorely lacks like full compile-time execution of regular C++ code which lets you do anything you can normally do from runtime during compile-time (including file I/O and networking), reflection, typed enums, pattern matching, hygienic macros, list comprehensions and language-native ranges, first class paramater packs and much more.
-
Code generation using attributes
I use them to automatically generate an ImGui interface for controlling a shadertoy here: https://github.com/seanbaxter/shaders/blob/master/README.md#user-attributes-and-dear-imgui
What are some alternatives?
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
The-Forge - The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
meta
nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
circle - The compiler is available for download. Get it!
LLGL - Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal
magnum - Lightweight and modular C++11 graphics middleware for games and data visualization
raylib - A simple and easy-to-use library to enjoy videogames programming
processing - Source code for the Processing Core and Development Environment (PDE)