Skip to content

Commit 056f7b7

Browse files
committed
Falcor 5.1 (#296)
1 parent 64fa81b commit 056f7b7

File tree

652 files changed

+27995
-6849
lines changed

Some content is hidden

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

652 files changed

+27995
-6849
lines changed

Build/deploycommon.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ if exist %RtxdiSDKDir% (
7979
copy /y %RtxdiSDKDir%\RtxdiTypes.h %RtxdiSDKTargetDir% >nul
8080
)
8181

82+
rem Copy RTXGI SDK shaders
83+
set RtxgiApiDir=%ExtDir%\rtxgi\rtxgi-sdk
84+
set RtxgiTargetDir=%OutDir%\Shaders\rtxgi
85+
if exist %RtxgiApiDir% (
86+
if not exist %RtxgiTargetDir% mkdir %RtxgiTargetDir% >nul
87+
robocopy %RtxgiApiDir%\include\ %RtxgiTargetDir%\include\ /s /r:0 >nul
88+
robocopy %RtxgiApiDir%\shaders\ %RtxgiTargetDir%\shaders\ /s /r:0 >nul
89+
)
90+
8291
rem Copy Agility SDK Runtime
8392
set AgilitySDKDir=%ExtDir%\agility-sdk
8493
set AgilitySDKTargetDir=%OutDir%\D3D12

Build/packman/bootstrap/configure.bat

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:: See the License for the specific language governing permissions and
1313
:: limitations under the License.
1414

15-
set PM_PACKMAN_VERSION=6.15
15+
set PM_PACKMAN_VERSION=6.42
1616

1717
:: Specify where packman command is rooted
1818
set PM_INSTALL_PATH=%~dp0..
@@ -48,7 +48,7 @@ echo.
4848
:: that may be needed in the path
4949
:ENSURE_DIR
5050
if not exist "%PM_PACKAGES_ROOT%" (
51-
echo Creating directory %PM_PACKAGES_ROOT%
51+
echo Creating packman packages cache at %PM_PACKAGES_ROOT%
5252
mkdir "%PM_PACKAGES_ROOT%"
5353
)
5454
if %errorlevel% neq 0 ( goto ERROR_MKDIR_PACKAGES_ROOT )
@@ -59,7 +59,7 @@ if defined PM_PYTHON_EXT (
5959
goto PACKMAN
6060
)
6161

62-
set PM_PYTHON_VERSION=3.7.4-windows-x86_64
62+
set PM_PYTHON_VERSION=3.7.12-windows-x86_64
6363
set PM_PYTHON_BASE_DIR=%PM_PACKAGES_ROOT%\python
6464
set PM_PYTHON_DIR=%PM_PYTHON_BASE_DIR%\%PM_PYTHON_VERSION%
6565
set PM_PYTHON=%PM_PYTHON_DIR%\python.exe
@@ -70,15 +70,19 @@ if not exist "%PM_PYTHON_BASE_DIR%" call :CREATE_PYTHON_BASE_DIR
7070
set PM_PYTHON_PACKAGE=python@%PM_PYTHON_VERSION%.cab
7171
for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0\generate_temp_file_name.ps1"') do set TEMP_FILE_NAME=%%a
7272
set TARGET=%TEMP_FILE_NAME%.zip
73-
call "%~dp0fetch_file_from_s3.cmd" %PM_PYTHON_PACKAGE% "%TARGET%"
74-
if %errorlevel% neq 0 ( goto ERROR )
73+
call "%~dp0fetch_file_from_packman_bootstrap.cmd" %PM_PYTHON_PACKAGE% "%TARGET%"
74+
if %errorlevel% neq 0 (
75+
echo !!! Error fetching python from CDN !!!
76+
goto ERROR
77+
)
7578

7679
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
7780
echo Unpacking Python interpreter ...
7881
"%SystemRoot%\system32\expand.exe" -F:* "%TARGET%" "%TEMP_FOLDER_NAME%" 1> nul
7982
del "%TARGET%"
8083
:: Failure during extraction to temp folder name, need to clean up and abort
8184
if %errorlevel% neq 0 (
85+
echo !!! Error unpacking python !!!
8286
call :CLEAN_UP_TEMP_FOLDER
8387
goto ERROR
8488
)
@@ -95,6 +99,7 @@ if exist "%PM_PYTHON%" (
9599
rename "%TEMP_FOLDER_NAME%" "%PM_PYTHON_VERSION%" 1> nul
96100
:: Failure during move, need to clean up and abort
97101
if %errorlevel% neq 0 (
102+
echo !!! Error renaming python !!!
98103
call :CLEAN_UP_TEMP_FOLDER
99104
goto ERROR
100105
)
@@ -107,19 +112,28 @@ if defined PM_MODULE_DIR_EXT (
107112
set PM_MODULE_DIR=%PM_PACKAGES_ROOT%\packman-common\%PM_PACKMAN_VERSION%
108113
)
109114

110-
set PM_MODULE=%PM_MODULE_DIR%\packman.py
115+
set PM_MODULE=%PM_MODULE_DIR%\run.py
111116

112117
if exist "%PM_MODULE%" goto ENSURE_7ZA
113118

119+
:: Clean out broken PM_MODULE_DIR if it exists
120+
if exist "%PM_MODULE_DIR%" ( rd /s /q "%PM_MODULE_DIR%" > nul )
121+
114122
set PM_MODULE_PACKAGE=packman-common@%PM_PACKMAN_VERSION%.zip
115123
for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0\generate_temp_file_name.ps1"') do set TEMP_FILE_NAME=%%a
116124
set TARGET=%TEMP_FILE_NAME%
117-
call "%~dp0fetch_file_from_s3.cmd" %PM_MODULE_PACKAGE% "%TARGET%"
118-
if %errorlevel% neq 0 ( goto ERROR )
125+
call "%~dp0fetch_file_from_packman_bootstrap.cmd" %PM_MODULE_PACKAGE% "%TARGET%"
126+
if %errorlevel% neq 0 (
127+
echo !!! Error fetching packman from CDN !!!
128+
goto ERROR
129+
)
119130

120131
echo Unpacking ...
121132
"%PM_PYTHON%" -S -s -u -E "%~dp0\install_package.py" "%TARGET%" "%PM_MODULE_DIR%"
122-
if %errorlevel% neq 0 ( goto ERROR )
133+
if %errorlevel% neq 0 (
134+
echo !!! Error unpacking packman !!!
135+
goto ERROR
136+
)
123137

124138
del "%TARGET%"
125139

@@ -131,7 +145,10 @@ set PM_7Za_PATH=%PM_PACKAGES_ROOT%\chk\7za\%PM_7ZA_VERSION%
131145
if exist "%PM_7Za_PATH%" goto END
132146

133147
"%PM_PYTHON%" -S -s -u -E "%PM_MODULE%" pull "%PM_MODULE_DIR%\deps.packman.xml"
134-
if %errorlevel% neq 0 ( goto ERROR )
148+
if %errorlevel% neq 0 (
149+
echo !!! Error fetching packman dependencies !!!
150+
goto ERROR
151+
)
135152

136153
goto END
137154

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<#
2+
Copyright 2019 NVIDIA CORPORATION
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
#>
16+
17+
param(
18+
[Parameter(Mandatory=$true)][string]$source=$null,
19+
[string]$output="out.exe"
20+
)
21+
$filename = $output
22+
23+
$triesLeft = 4
24+
$delay = 2
25+
do
26+
{
27+
$triesLeft -= 1
28+
29+
try
30+
{
31+
Write-Host "Downloading from bootstrap.packman.nvidia.com ..."
32+
$wc = New-Object net.webclient
33+
$wc.Downloadfile($source, $fileName)
34+
exit 0
35+
}
36+
catch
37+
{
38+
Write-Host "Error downloading $source!"
39+
Write-Host $_.Exception|format-list -force
40+
if ($triesLeft)
41+
{
42+
Write-Host "Retrying in $delay seconds ..."
43+
Start-Sleep -seconds $delay
44+
}
45+
$delay = $delay * $delay
46+
}
47+
} while ($triesLeft -gt 0)
48+
# We only get here if the retries have been exhausted, remove any left-overs:
49+
if (Test-Path $fileName)
50+
{
51+
Remove-Item $fileName
52+
}
53+
exit 1

Build/packman/bootstrap/fetch_file_from_s3.cmd renamed to Build/packman/bootstrap/fetch_file_from_packman_bootstrap.cmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919

2020
@echo Fetching %PACKAGE_NAME% ...
2121

22-
@powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0fetch_file_from_s3.ps1" -sourceName %PACKAGE_NAME% ^
23-
-output %TARGET_PATH%
22+
@powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0download_file_from_url.ps1" ^
23+
-source "http://bootstrap.packman.nvidia.com/%PACKAGE_NAME%" -output %TARGET_PATH%
2424
:: A bug in powershell prevents the errorlevel code from being set when using the -File execution option
25-
:: We must therefore do our own failure analysis, basically make sure the file exists and is larger than 0 bytes:
25+
:: We must therefore do our own failure analysis, basically make sure the file exists:
2626
@if not exist %TARGET_PATH% goto ERROR_DOWNLOAD_FAILED
27-
@if %~z2==0 goto ERROR_DOWNLOAD_FAILED
2827

2928
@endlocal
3029
@exit /b 0

Build/packman/bootstrap/fetch_file_from_s3.ps1

Lines changed: 0 additions & 76 deletions
This file was deleted.

Build/packman/bootstrap/fetch_file_from_url.ps1

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)