-
Notifications
You must be signed in to change notification settings - Fork 10
/
3-Test samples.bat
76 lines (64 loc) · 1.43 KB
/
3-Test samples.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
@echo off
set DIR_DATA=_Data
set DIR_BIN=_Bin\Release
if not exist "%DIR_BIN%" (
set DIR_BIN=_Bin\Debug
)
if not exist "%DIR_BIN%" (
echo The project is not compiled!
pause
exit /b
)
echo Running samples from '%DIR_BIN%'...
echo.
:: API independent samples
"%DIR_BIN%\DeviceInfo.exe"
if %ERRORLEVEL% equ 0 (
echo =^> OK
) else (
echo =^> FAILED!
)
echo.
:: API dependent samples
call :TestSample AsyncCompute 100
call :TestSample BindlessSceneViewer 1000
call :TestSample Clear 1000
call :TestSample LowLatency 100
call :TestSample MultiThreading 50
call :TestSample Multiview 1000
call :TestSample RayTracingBoxes 1000
call :TestSample RayTracingTriangle 1000
call :TestSample Readback 1000
call :TestSample Resize 25000
call :TestSample SceneViewer 1000
call :TestSample Triangle 1000
call :TestSample Wrapper 1000
pause
exit /b
::========================================================================================
:TestSample
echo %1 [D3D11]
"%DIR_BIN%\%1.exe" --api=D3D11 --frameNum=%2 --debugAPI --debugNRI
if %ERRORLEVEL% equ 0 (
echo =^> OK
) else (
echo =^> FAILED!
)
echo.
echo %1 [D3D12]
"%DIR_BIN%\%1.exe" --api=D3D12 --frameNum=%2 --debugAPI --debugNRI
if %ERRORLEVEL% equ 0 (
echo =^> OK
) else (
echo =^> FAILED!
)
echo.
echo %1 [VULKAN]
"%DIR_BIN%\%1.exe" --api=VULKAN --frameNum=%2 --debugAPI --debugNRI
if %ERRORLEVEL% equ 0 (
echo =^> OK
) else (
echo =^> FAILED!
)
echo.
exit /b