You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2eea9ec
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ This is the test bench for [*NRI (NVIDIA Rendering Interface)*](https://github.c
6
6
7
7
## Build instructions
8
8
9
+
Scripts resolve the project root from their own location and can be launched from any working directory. Build output remains in `_Build` and `_Bin` at the project root.
10
+
11
+
To clean generated files, run `Scripts/Windows/4-Clean.bat`, `bash Scripts/Linux/4-Clean.sh` or `bash Scripts/MacOS/4-Clean.sh`. Cleanup also removes downloaded `_Data` and runs the matching cleanup scripts in NRIFramework and NRI.
12
+
9
13
### Windows
10
14
11
15
- Install **WindowsSDK** and **VulkanSDK**
@@ -29,30 +33,26 @@ Or by running scripts only:
29
33
30
34
### macOS
31
35
32
-
- Install Xcode command line tools, CMake 3.30+, Ninja and the [Vulkan SDK](https://vulkan.lunarg.com/sdk/home#mac)
36
+
- Install **Xcode** 26+ with command line tools and the Metal toolchain (`xcodebuild -downloadComponent MetalToolchain`)
37
+
- Install **CMake** 3.30+ and **Ninja**
38
+
- Install the [Vulkan SDK](https://vulkan.lunarg.com/sdk/home#mac) (provides *DXC*, required to compile shaders, and *Vulkan* through *MoltenVK*)
33
39
- Source the Vulkan SDK's `setup-env.sh`
34
-
- Run `bash Scripts/MacOS/1-Deploy.sh`, then `bash Scripts/MacOS/2-Build.sh`
35
-
36
-
Scripts resolve the project root from their own location and can be launched from any working directory. Build output remains in `_Build` and `_Bin` at the project root.
37
-
38
-
To clean generated files, run `Scripts/Windows/4-Clean.bat`, `bash Scripts/Linux/4-Clean.sh` or `bash Scripts/MacOS/4-Clean.sh`. Cleanup also removes downloaded `_Data` and runs the matching cleanup scripts in NRIFramework and NRI.
39
-
40
-
### macOS
41
-
42
-
- Install **Xcode** 26+ and the Metal toolchain (`xcodebuild -downloadComponent MetalToolchain`)
43
-
- Install **VulkanSDK** (provides *DXC*, required to compile shaders, and *Vulkan* through *MoltenVK*)
44
40
- Install **Metal Shader Converter** to run the samples on *Metal* (HLSL → DXIL → Metal, enabled automatically if installed, *Metal* becomes the default API; otherwise *Vulkan* is used)
45
41
- Clone project and init submodules
46
42
- Generate and build project using **cmake**
47
43
44
+
Or by running scripts only:
45
+
- Run `bash Scripts/MacOS/1-Deploy.sh`
46
+
- Run `bash Scripts/MacOS/2-Build.sh`
47
+
48
48
### CMake options
49
49
50
50
-`DISABLE_SHADER_COMPILATION` - disable compilation of shaders (shaders can be built on other platform)
51
51
-`NRIF_USE_WAYLAND` - use Wayland instead of X11 on Linux
52
52
53
53
## How to run
54
54
55
-
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 `Scripts/Windows/3-Test samples.bat`, which sets the working directory to the project root.
55
+
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. To run all samples sequentially, use `Scripts/Windows/3-Test samples.bat`, `bash "Scripts/Linux/3-Test samples.sh"` or `bash "Scripts/MacOS/3-Test samples.sh"`. These scripts set the working directory to the project root. The Linux and macOS runners select backends enabled in `_Build/CMakeCache.txt`.
0 commit comments