Home

Awesome

NRI Samples

Build instructions

Windows

Or by running scripts only:

Linux (x86-64)

Or by running scripts only:

Linux (aarch64)

CMake options

-DUSE_MINIMAL_DATA=ON - download minimal resource package (90MB)

-DDISABLE_SHADER_COMPILATION=ON - disable compilation of shaders (shaders can be built on other platform)

-DDXC_CUSTOM_PATH=my/path/to/dxc - custom path to dxc

-DUSE_DXC_FROM_PACKMAN_ON_AARCH64=OFF - use default path for dxc

How to run

The executables load resources from _Data, therefore please run the samples with working directory set to the project root folder. The executables can be found in _Bin.

How to add new sample

Create a new cpp file in Source/ and add add_sample(YourFileName) in CMakeLists.txt.

CMake script scans and adds all shaders from Source/Shaders to a project called SampleShaders, therefore you will need to reconfigure CMake project after adding new shaders.