Skip to content

Commit 76816c0

Browse files
authored
Falcor 4.0 (#228)
* Falcor 4.0
1 parent 48aa4e2 commit 76816c0

File tree

966 files changed

+61068
-39798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

966 files changed

+61068
-39798
lines changed

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
Tests/Bin/*
2-
Tests/TestsResults/*
3-
Tests/TestConfigsDev/*
4-
Tests/.vs/*
51
Bin/*
62
*.user
73
*.sdf
@@ -10,7 +6,6 @@ Bin/*
106
*.ptx
117
*.pyc
128
*.VC.db
13-
FalcorTest/TestResults/*
149
*.VC.opendb
1510
.vs/*
1611
.vscode/
@@ -19,6 +14,5 @@ FalcorTest/TestResults/*
1914
*slang-dump-*
2015
Source/Externals/.packman/*
2116
Media
22-
/Tests/TestResults/*
23-
/Tests/Solution_BuildLog.txt
24-
/Tests/robocopy.txt
17+
Tools/.packman
18+
Tests/data

Build/deploycommon.bat

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ if not exist "%OutDir%" mkdir "%OutDir%"
1515

1616
rem Copy Falcor's files
1717
IF not exist %OutDir%\Data\ mkdir %OutDir%\Data >nul
18-
IF exist %FalcorDir%\ShadingUtils\ (xcopy %FalcorDir%\ShadingUtils\*.* %OutDir%\Data /s /y /d)
19-
IF exist %FalcorDir%\Raytracing\Data\ (xcopy %FalcorDir%\Raytracing\Data\*.* %OutDir%\Data /s /y /d /q >nul)
2018
call %~dp0\deployproject.bat %FalcorDir% %OutDir%
2119

2220
rem Copy externals
@@ -26,22 +24,22 @@ robocopy %ExtDir%\AntTweakBar\lib %OutDir% AntTweakBar64.dll /r:0 >nul
2624
robocopy %ExtDir%\FreeImage %OutDir% freeimage.dll /r:0 >nul
2725
robocopy %ExtDir%\assimp\bin\%2 %OutDir% *.dll /r:0 >nul
2826
robocopy %ExtDir%\FFMpeg\bin\%2 %OutDir% *.dll /r:0 >nul
29-
robocopy %ExtDir%\dxcompiler\%2 %OutDir% dxcompiler.dll /r:0 >nul
30-
rem robocopy %ExtDir%\dxcompiler\windows-x86_64\release\%2 %OutDir% *.dll /r:0 >nul
27+
rem robocopy %ExtDir%\dxcompiler\%2 %OutDir% dxcompiler.dll /r:0 >nul
3128
robocopy %ExtDir%\OptiX\bin64 %OutDir% *.dll /r:0 >nul
3229
robocopy %ExtDir%\openvr\bin\win64 %OutDir% openvr_api.dll /r:0 >nul
3330
robocopy %ExtDir%\Slang\bin\windows-x64\release %OutDir% *.dll /r:0 >nul
3431
robocopy %ExtDir%\GLFW\lib %OutDir% *.dll /r:0 >nul
3532
robocopy %ExtDir%\WinPixEventRuntime\bin\x64 %OutDir% WinPixEventRuntime.dll /r:0 >nul
3633
robocopy "%~4\Redist\D3D\%2" %OutDir% dxil.dll /r:0 >nul
34+
robocopy "%~4\Redist\D3D\%2" %OutDir% dxcompiler.dll /r:0 >nul
3735

3836
rem Copy NVAPI
3937
set NvApiDir=%ExtDir%\NVAPI
4038
IF exist %NvApiDir% (
41-
IF not exist %OutDir%\Data\NVAPI mkdir %OutDir%\Data\NVAPI >nul
42-
copy /y %NvApiDir%\nvHLSLExtns.h %OutDir%\Data\NVAPI
43-
copy /y %NvApiDir%\nvHLSLExtnsInternal.h %OutDir%\Data\NVAPI
44-
copy /y %NvApiDir%\nvShaderExtnEnums.h %OutDir%\Data\NVAPI
39+
IF not exist %OutDir%\Shaders\NVAPI mkdir %OutDir%\Shaders\NVAPI >nul
40+
copy /y %NvApiDir%\nvHLSLExtns.h %OutDir%\Shaders\NVAPI
41+
copy /y %NvApiDir%\nvHLSLExtnsInternal.h %OutDir%\Shaders\NVAPI
42+
copy /y %NvApiDir%\nvShaderExtnEnums.h %OutDir%\Shaders\NVAPI
4543
)
4644

4745
rem robocopy sets the error level to something that is not zero even if the copy operation was successful. Set the error level to zero
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@set PM_PACKMAN_VERSION=5.7.1
1+
@set PM_PACKMAN_VERSION=5.14
22

33
:: Specify where packman command is rooted
44
@set PM_INSTALL_PATH=%~dp0..
@@ -61,7 +61,7 @@
6161

6262
@for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0\generate_temp_folder.ps1" -parentPath "%PM_PYTHON_BASE_DIR%"') do @set TEMP_FOLDER_NAME=%%a
6363
@echo Unpacking Python interpreter ...
64-
@expand -F:* "%TARGET%" "%TEMP_FOLDER_NAME%" 1> nul
64+
@"%SystemRoot%\system32\expand.exe" -F:* "%TARGET%" "%TEMP_FOLDER_NAME%" 1> nul
6565
@del "%TARGET%"
6666
:: Failure during extraction to temp folder name, need to clean up and abort
6767
@if errorlevel 1 (
@@ -104,7 +104,7 @@
104104
@if errorlevel 1 goto ERROR
105105

106106
@echo Unpacking ...
107-
@"%PM_PYTHON%" -s -u -E "%~dp0\install_package.py" "%TARGET%" "%PM_MODULE_DIR%"
107+
@"%PM_PYTHON%" -S -s -u -E "%~dp0\install_package.py" "%TARGET%" "%PM_MODULE_DIR%"
108108
@if errorlevel 1 goto ERROR
109109

110110
@del "%TARGET%"
@@ -116,7 +116,7 @@
116116
@set PM_7Za_PATH=%PM_PACKAGES_ROOT%\chk\7za\%PM_7ZA_VERSION%
117117
@if exist "%PM_7Za_PATH%" goto END
118118

119-
@"%PM_PYTHON%" -s -u -E "%PM_MODULE%" pull "%PM_MODULE_DIR%\deps.packman.xml"
119+
@"%PM_PYTHON%" -S -s -u -E "%PM_MODULE%" pull "%PM_MODULE_DIR%\deps.packman.xml"
120120
@if errorlevel 1 goto ERROR
121121

122122
@goto END
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Build/packman/win-bootstrap/install_package.py renamed to Build/packman/bootstrap/install_package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __enter__(self):
1717
self.path = tempfile.mkdtemp()
1818
return self.path
1919

20-
def __exit__(self, type, value, traceback ):
20+
def __exit__(self, type, value, traceback):
2121
# Remove temporary data created
2222
shutil.rmtree(self.path)
2323

@@ -36,4 +36,4 @@ def install_package(package_src_path, package_dst_path):
3636
logger.info("Package successfully installed to %s" % package_dst_path)
3737

3838

39-
install_package(sys.argv[1], sys.argv[2])
39+
install_package(sys.argv[1], sys.argv[2])

Build/packman/packman

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
PM_PACKMAN_VERSION=5.7.1
3+
PM_PACKMAN_VERSION=5.14
44

55
# Specify where packman command exists
66
export PM_INSTALL_PATH=$(dirname ${BASH_SOURCE})
@@ -52,6 +52,15 @@ fetch_file_from_s3()
5252
fi
5353
}
5454

55+
# For now assume python is installed on the box and we just need to find it
56+
if command -v python2.7 >/dev/null 2>&1; then
57+
export PM_PYTHON=python2.7
58+
elif command -v python2 >/dev/null 2>&1; then
59+
export PM_PYTHON=python2
60+
else
61+
export PM_PYTHON=python
62+
fi
63+
5564
# Ensure the packman package exists:
5665
if [ ! -f "$PM_MODULE" ]; then
5766
PM_MODULE_PACKAGE="packman-common@$PM_PACKMAN_VERSION.zip"
@@ -60,31 +69,21 @@ if [ ! -f "$PM_MODULE" ]; then
6069
fetch_file_from_s3 $PM_MODULE_PACKAGE $TARGET
6170
if [ "$?" -eq "0" ]; then
6271
echo "Unpacking ..."
63-
mkdir -p "$PM_MODULE_DIR"
64-
unzip -q $TARGET -d "$PM_MODULE_DIR"
72+
$PM_PYTHON -S -s -u -E "$PM_INSTALL_PATH/bootstrap/install_package.py" "$TARGET" "$PM_MODULE_DIR"
6573
rm $TARGET
6674
else
6775
echo "Failure while fetching packman module from S3!"
6876
exit 1
6977
fi
7078
fi
7179

72-
# For now assume python is installed on the box and we just need to find it
73-
if command -v python2.7 >/dev/null 2>&1; then
74-
export PM_PYTHON=python2.7
75-
elif command -v python2 >/dev/null 2>&1; then
76-
export PM_PYTHON=python2
77-
else
78-
export PM_PYTHON=python
79-
fi
80-
8180
# Ensure 7za package exists:
8281
PM_7za_VERSION=16.02.4
8382
export PM_7za_PATH="$PM_PACKAGES_ROOT/7za/$PM_7za_VERSION"
8483
if [ ! -d "$PM_7za_PATH" ]; then
8584
export PM_7za_PATH="$PM_PACKAGES_ROOT/chk/7za/$PM_7za_VERSION"
8685
if [ ! -d "$PM_7za_PATH" ]; then
87-
$PM_PYTHON -s -u -E "$PM_MODULE" pull "$PM_MODULE_DIR/deps.packman.xml"
86+
$PM_PYTHON -S -s -u -E "$PM_MODULE" pull "$PM_MODULE_DIR/deps.packman.xml"
8887
if [ "$?" -ne 0 ]; then
8988
echo "Failure while installing required 7za package"
9089
exit 1
@@ -95,7 +94,7 @@ fi
9594
# Generate temporary file name for environment variables:
9695
PM_VAR_PATH=`mktemp -u -t tmp.$$.pmvars.XXXXXX`
9796

98-
$PM_PYTHON -s -u -E "$PM_MODULE" $* --var-path="$PM_VAR_PATH"
97+
$PM_PYTHON -S -s -u -E "$PM_MODULE" "$@" --var-path="$PM_VAR_PATH"
9998
exit_code=$?
10099
# Export the variables if the file was used and remove the file:
101100
if [ -f "$PM_VAR_PATH" ]; then

0 commit comments

Comments
 (0)