-
Notifications
You must be signed in to change notification settings - Fork 19
/
3-Run NRD sample.bat
153 lines (143 loc) · 2.61 KB
/
3-Run NRD sample.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
@echo off
set DIR_BIN=%cd%\_Bin\Release
if not exist "%DIR_BIN%" (
set DIR_BIN=%cd%\_Bin\Debug
)
if not exist "%DIR_BIN%" (
echo The project is not compiled!
exit /b
)
echo Running NRD sample from '%DIR_BIN%'...
set API=D3D12
echo.
echo 1 - D3D12
echo 2 - VULKAN
:CHOOSE_API
set /P M=Choose API [1-2]:
if %M%==1 (
set API=D3D12
goto RESOLUTION
)
if %M%==2 (
set API=VULKAN
goto RESOLUTION
)
goto CHOOSE_API
:RESOLUTION
set WIDTH=1920
set HEIGHT=1080
echo.
echo 1 - 1080p
echo 2 - 1440p
echo 3 - 2160p
echo 4 - 1080p (ultra wide)
echo 5 - 1440p (ultra wide)
:CHOOSE_RESOLUTION
set /P M=Choose resolution [1-5]:
if %M%==1 (
set WIDTH=1920
set HEIGHT=1080
goto VSYNC
)
if %M%==2 (
set WIDTH=2560
set HEIGHT=1440
goto VSYNC
)
if %M%==3 (
set WIDTH=3840
set HEIGHT=2160
goto VSYNC
)
if %M%==4 (
set WIDTH=2560
set HEIGHT=1080
goto VSYNC
)
if %M%==5 (
set WIDTH=3440
set HEIGHT=1440
goto VSYNC
)
goto CHOOSE_RESOLUTION
:VSYNC
set VSYNC=0
echo.
echo 1 - off
echo 2 - on
:CHOOSE_VSYNC
set /P M=Vsync [1-2]:
if %M%==1 (
set VSYNC=0
goto DLSS
)
if %M%==2 (
set VSYNC=1
goto DLSS
)
goto CHOOSE_VSYNC
:DLSS
set DLSS=-1
echo.
echo 1 - off
echo 2 - ultra performance
echo 3 - performance
echo 4 - balanced
echo 5 - quality
echo 6 - aa
:CHOOSE_DLSS
set /P M=DLSS mode [1-6]:
if %M%==1 (
set DLSS=-1
goto SCENE
)
if %M%==2 (
set DLSS=0
goto SCENE
)
if %M%==3 (
set DLSS=1
goto SCENE
)
if %M%==4 (
set DLSS=2
goto SCENE
)
if %M%==5 (
set DLSS=3
goto SCENE
)
if %M%==6 (
set DLSS=4
goto SCENE
)
goto CHOOSE_DLSS
:SCENE
set SCENE=Bistro\BistroInterior.gltf
echo.
echo 1 - Bistro (interior)
echo 2 - Bistro (exterior)
echo 3 - Shader balls
echo 4 - Kitchen
:CHOOSE_SCENE
set /P M=Choose scene [1-4]:
if %M%==1 (
set SCENE=Bistro\BistroInterior.gltf
goto RUN
)
if %M%==2 (
set SCENE=Bistro\BistroExterior.gltf
goto RUN
)
if %M%==3 (
set SCENE=ShaderBalls\ShaderBalls.gltf
goto RUN
)
if %M%==4 (
set SCENE=Kitchen\Kitchen.gltf
goto RUN
)
goto CHOOSE_SCENE
:RUN
start "NRD sample" "%DIR_BIN%\NRDSample.exe" --width=%WIDTH% --height=%HEIGHT% --api=%API% --vsyncInterval=%VSYNC% --scene=%SCENE% --dlssQuality=%DLSS% --debugNRD
exit /b