Samples

Samples are simple graphics applications intended to demonstrate the usage of the Diligent Engine API. The samples’ source files are hosted in DiligentSamples repository (https://github.com/DiligentGraphics/DiligentSamples). The following samples are currently implemented:

Sample  Description
AntTwBar  AntTweakBar sample (DiligentSamples\Samples\AntTweakBar)
AtmScatteringSample01  Atmospheric scattering sample (DiligentSamples\Samples\Atmosphere)

 

Building and Running

Windows Desktop

Please visit this page for build instructions.

To run a sample from Visual Studio, locate the sample’s project in the solution explorer, and set it as startup project. For samples to run properly, the assets folder needs to be set up as a working directory (this is automatically configured by CMake). By default the sample will run in D3D11 mode. To use D3D12 or OpenGL, use the following command line option: mode={D3D11|D3D12|GL} (do not use spaces!).

Universal Windows Platform

Please visit this page for build instructions.

To run a sample from Visual Studio, locate the sample’s project under Samples folder in the solution explorer, set the project as startup project, deploy and run it. On Universal Windows Platform, only D3D11 or D3D12 mode is available.

Android

Please visit this page for build instructions.

You can use Android Studio to build, deploy and run samples.