forked from GPUOpen-LibrariesAndSDKs/FidelityFX-SDK
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBuildFSRSolutionNativeDll.bat
More file actions
40 lines (33 loc) · 879 Bytes
/
BuildFSRSolutionNativeDll.bat
File metadata and controls
40 lines (33 loc) · 879 Bytes
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
@echo off
echo ===============================================================
echo.
echo FidelityFX Build System
echo.
echo ===============================================================
echo Checking pre-requisites...
:: Check if cmake is installed
cmake --version > nul 2>&1
if %errorlevel% NEQ 0 (
echo Cannot find path to CMake. Is CMake installed? Exiting...
exit /b -1
) else (
echo CMake Ready.
)
:: Start by building the backend SDK
:: CUSTOM_CHANGES_TO_FSR3 build FSR3 DLL with RelWithDebInfo configuration
echo Building native backend
cd sdk
call BuildFidelityFXSDK.bat -DFFX_BUILD_AS_DLL=1
cd ..
echo.
echo Building FSR sample solution
echo.
:: Check directories exist and create if not
if not exist build\ (
mkdir build
)
cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_FSR -DFFX_API=NATIVE -DFFX_BUILD_AS_DLL=1
:: Come back to root level
cd ..
pause