Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fsx #32

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fsx #32

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ package_release_samples:
- ./LICENSE.txt
- ./readme.md
- ./sample.cmake
- ./Third_party_notices.txt

package_debug_samples:
stage: package
Expand All @@ -179,3 +180,4 @@ package_debug_samples:
- ./LICENSE.txt
- ./readme.md
- ./sample.cmake
- ./Third_party_notices.txt
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "shadered",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
},
{
"type": "shadered",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
},


{
"name": "Python C++ Debugger",
"type": "pythoncpp",
"request": "launch",
"pythonLaunchName": "Python: Current File",
"cppAttachName": "'(Windows) Attach' or '(gdb) Attach'"
},
{
"name": "Python C++ Debugger",
"type": "pythoncpp",
"request": "launch",
"pythonConfig": "default",
"cppConfig": "!!pick 'default (win) Attach' or 'default (gdb) Attach'"
},
{
"type": "shadered",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
}
]
}
4 changes: 2 additions & 2 deletions BuildAllCauldronEffectsSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
2 changes: 2 additions & 0 deletions BuildAllCauldronEffectsSolutionDll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
call BuildAllCauldronEffectsSolution.bat -DFFX_BUILD_AS_DLL=1
6 changes: 3 additions & 3 deletions BuildAllNativeEffectsSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:: Start by building the backend SDK
echo Building native backend
cd sdk
call BuildFidelityFXSDK.bat
call BuildFidelityFXSDK.bat %*
cd ..

echo.
Expand All @@ -16,8 +16,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE
cmake -A x64 .. -DBUILD_TYPE=ALL_SAMPLES -DFFX_API=NATIVE %*

:: Come back to root level
cd ..
pause
pause
2 changes: 2 additions & 0 deletions BuildAllNativeEffectsSolutionDll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
call BuildAllNativeEffectsSolution.bat -DFFX_BUILD_AS_DLL=1
4 changes: 2 additions & 2 deletions BuildBlurSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_BLUR -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_BLUR -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildCACAOSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_CACAO -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_CACAO -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildCASSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_CAS -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_CAS -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildCauldronSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -D BUILD_TYPE=CAULDRON
cmake -A x64 .. -D BUILD_TYPE=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildDOFSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_DOF -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_DOF -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildFSRSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_FSR -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_FSR -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
39 changes: 39 additions & 0 deletions BuildFSRSolutionNative.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@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
echo Building native backend
cd sdk
call BuildFidelityFXSDK.bat
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 %*

:: Come back to root level
cd ..
pause
40 changes: 40 additions & 0 deletions BuildFSRSolutionNativeDll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
2 changes: 1 addition & 1 deletion BuildHybridReflectionsSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_HYBRIDREFLECTIONS -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_HYBRIDREFLECTIONS -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
Expand Down
2 changes: 1 addition & 1 deletion BuildHybridShadowsSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_HYBRIDSHADOWS -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_HYBRIDSHADOWS -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
Expand Down
2 changes: 1 addition & 1 deletion BuildLPMSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_LPM -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_LPM -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
Expand Down
2 changes: 1 addition & 1 deletion BuildLensSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_LENS -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_LENS -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
Expand Down
4 changes: 2 additions & 2 deletions BuildParallelSortSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_PARALLEL_SORT -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_PARALLEL_SORT -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
4 changes: 2 additions & 2 deletions BuildSPDSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_SPD -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_SPD -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
2 changes: 1 addition & 1 deletion BuildSSSRSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_SSSR -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_SSSR -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
Expand Down
4 changes: 2 additions & 2 deletions BuildVRSSolution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ if not exist build\ (
)

cd build
cmake -A x64 .. -DBUILD_TYPE=FFX_VRS -DFFX_API=CAULDRON
cmake -A x64 .. -DBUILD_TYPE=FFX_VRS -DFFX_API=CAULDRON %*

:: Come back to root level
cd ..
pause
pause
Loading