Sample projects demonstrating the usage of Diligent Engine
To build and run the applications in the module, please follow the instructions in the master repository.
This tutorial shows how to render simple triangle using Diligent Engine API.
This tutorial demonstrates how to render an actual 3D object, a cube. It shows how to load shaders from files, create and use vertex, index and uniform buffers.
This tutorial demonstrates how to apply a texture to a 3D object. It shows how to load a texture from file, create shader resource binding object and how to sample a texture in the shader.
This tutorial is identical to Tutorial03, but is implemented using C API.
This tutorial demonstrates how to use instancing to render multiple copies of one object using unique transformation matrix for every copy.
This tutorial demonstrates how to combine instancing with texture arrays to use unique texture for every instance.
This tutorial shows how to generate command lists in parallel from multiple threads.
This tutorial shows how to use geometry shader to render smooth wireframe.
This tutorial shows how to use hardware tessellation to implement simple adaptive terrain rendering algorithm.
This tutorial shows how to render multiple 2D quads, frequently swithcing textures and blend modes.
This tutorial shows dynamic buffer mapping strategy using
MAP_FLAG_DO_NOT_SYNCHRONIZEflags to efficiently stream varying amounts of data to GPU.
This tutorial demonstrates different ways to update buffers and textures in Diligent Engine and explains important internal details and performance implications related to each method.
This tutorial demonstrates how to render a 3d cube into an offscreen render target and do a simple post-processing effect.
This tutorial demonstrates how to render basic shadows using a shadow map.
This tutorial shows how to implement a simple particle simulation system using compute shaders.
This tutorial demonstrates how to use Diligent Engine to render to multiple windows.
This tutorial shows how to implement bindless resources, a technique that leverages dynamic shader resource indexing feature enabled by the next-gen APIs to significantly improve rendering performance.
This tutorial demonstrates how to use multisample anti-aliasing (MSAA) to make geometrical edges look smoother and more temporarily stable.
This tutorial demonstrates how to use queries to retrieve various information about the GPU operation, such as the number of primitives rendered, command processing duration, etc.
This tutorial demonstrates how to use the render passes API to implement simple deferred shading.
This tutorial demonstrates how to use amplification and mesh shaders, the new programmable stages, to implement view frustum culling and object LOD calculation on the GPU.
This tutorial demonstrates the basics of using ray tracing API in Diligent Engine.
This sample demonstrates how to integrate Epipolar Light Scattering post-processing effect into an application to render physically-based atmosphere.
||| |-----------------|-----------------| | | | | | |
This sample demonstrates how to integrate the Shadowing component into an application to render high-quality shadows.
This sample demonstrates the integration of the engine with dear imgui UI library.
This sample demonstrates the integration of the engine with nuklear UI library.
This sample demonstrates how to use Diligent Engine in a basic Android AR application.
Please refer to Build and Run Instructions section in the master repository's readme.
Command line options:
When image capture is enabled the following hot keys are available:
To record multiple frames after the app starts, use command line like this:
-mode d3d12 -capture_path . -capture_fps 15 -capture_name frame -width 640 -height 480 -capture_format png -capture_frames 50
See Apache 2.0 license.
This project has some third-party dependencies, each of which may have independent licensing:
To contribute your code, submit a Pull Request to this repository. Diligent Engine is licensed under the Apache 2.0 license that guarantees that content in the DiligentSamples repository is free of Intellectual Property encumbrances. In submitting any content to this repository, you license that content under the same terms, and you agree that the content is free of any Intellectual Property claims and you have the right to license it under those terms.
Diligent Engine uses clang-format to ensure consistent source code style throught the code base. The format is validated by appveyor and travis for each commit and pull request, and the build will fail if any code formatting issue is found. Please refer to this page for instructions on how to set up clang-format and automatic code formatting.