- Install WindowsSDK and VulkanSDK
- Clone project and init submodules
- Generate and build project using cmake
- To build the binary with static MSVC runtime, add
-DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>"
parameter
- To build the binary with static MSVC runtime, add
Or by running scripts only:
- Run
1-Deploy.bat
- Run
2-Build.bat
- Install VulkanSDK, xorg-dev, libwayland-dev, libxkbcommon-dev
- Clone project and init submodules
- Generate and build project using cmake
Or by running scripts only:
- Run
./1-Deploy.sh
- RUn
./2-Build.sh
- Install libx11-dev, libxrandr-dev
- Clone project and init submodules
- Generate and build project using cmake
USE_MINIMAL_DATA
- download minimal resource package (90MB)DISABLE_SHADER_COMPILATION
- disable compilation of shaders (shaders can be built on other platform)NRIF_USE_WAYLAND
- use Wayland instead of X11 on Linux
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
.
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.