https://github.com/NVIDIA-RTX/NRISamples
https://github.com/NVIDIA-RTX/NRISamples
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/NVIDIA-RTX/NRISamples
- Owner: NVIDIAGameWorks
- License: mit
- Created: 2021-09-27T16:49:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T06:30:39.000Z (about 2 years ago)
- Last Synced: 2024-03-20T07:37:35.723Z (about 2 years ago)
- Language: C++
- Size: 236 KB
- Stars: 16
- Watchers: 20
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NRI Samples
[](https://github.com/NVIDIA-RTX/NRISamples/actions/workflows/build.yml)
This is the test bench for [*NRI (NVIDIA Rendering Interface)*](https://github.com/NVIDIA-RTX/NRI).
## Build instructions
### Windows
- 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$<$:Debug>"` parameter
Or by running scripts only:
- Run ``1-Deploy.bat``
- Run ``2-Build.bat``
### Linux
- Install **VulkanSDK**, **xorg-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`
### CMake options
- `DISABLE_SHADER_COMPILATION` - disable compilation of shaders (shaders can be built on other platform)
- `NRIF_USE_WAYLAND` - use Wayland instead of X11 on Linux
## How to run
The executables from `_Bin` directory load resources from `_Data`, therefore the samples need to be run with the working directory set to the project root folder. But the simplest way to run ALL samples sequentially is to click on `3-Test samples.bat`.