Skip to content

Commit b2a09c1

Browse files
committed
Update source code for RRA v1.7 release
1 parent dde6f71 commit b2a09c1

File tree

261 files changed

+8907
-2228
lines changed

Some content is hidden

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

261 files changed

+8907
-2228
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ project(RRA)
1515

1616
# Define version information
1717
set(RRA_MAJOR_VERSION 1)
18-
set(RRA_MINOR_VERSION 6)
18+
set(RRA_MINOR_VERSION 7)
1919
if (NOT RRA_BUGFIX_NUMBER)
2020
set(RRA_BUGFIX_NUMBER 0)
2121
endif ()

build/dependency_map.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,22 @@
2222
# each git dependency has a desired directory where it will be cloned - along with a commit to checkout
2323
# The third parameter in the value field is whether to do a shallow clone. Usually, this will be True but if a commit hash is used as a branch, a full clone is needed.
2424
git_mapping = {
25-
github_tools + "qt_common" : ["../external/qt_common", "v4.0.0", True],
25+
github_tools + "qt_common" : ["../external/qt_common", "v4.1.0", True],
2626
github_tools + "update_check_api" : ["../external/update_check_api", "v2.1.1", True],
27-
github_tools + "system_info_utils" : ["../external/system_info_utils", "88a338a01949f8d8bad60a30b78b65300fd13a9f", False],
27+
github_tools + "system_info_utils" : ["../external/system_info_utils", "v2.0", True],
2828
github_root + "g-truc/glm" : ["../external/third_party/glm", "0.9.9.8", True],
2929
github_root + "KhronosGroup/Vulkan-Headers" : ["../external/third_party/vulkan", "sdk-1.3.211", True],
3030
github_root + "zeux/volk" : ["../external/third_party/volk", "1.2.190", True],
3131
github_root + "GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator" : ["../external/vma", "d2f0313d20c803f83cc3637ac1facf8e4d6899e4", False],
32-
github_root + "GPUOpen-Drivers/libamdrdf" : ["../external/rdf", "v1.1.2", True],
32+
github_root + "GPUOpen-Drivers/libamdrdf" : ["../external/rdf", "v1.4.0", True],
33+
}
34+
35+
# Downloads required for Windows builds.
36+
url_mapping_win = {
37+
"https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2308/dxc_2023_08_14.zip" : "../external/third_party/dxc",
38+
}
39+
40+
# Downloads required for Linux builds.
41+
url_mapping_linux = {
42+
"https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2308/linux_dxc_2023_08_14.x86_64.tar.gz" : "../external/third_party/dxc",
3343
}

build/fetch_dependencies.py

+67
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,69 @@ def log_print(message):
4848
# add script root to support import of URL and git maps
4949
sys.path.append(script_root)
5050
from dependency_map import git_mapping
51+
from dependency_map import url_mapping_win
52+
from dependency_map import url_mapping_linux
53+
54+
# Download a zip or tgz file from the specified URL and unzip into the directory defined by destination.
55+
# The destination directory will be created if it doesn't exist
56+
# if the 'update' parameter is true then the existing file and output directory will be deleted and re-created
57+
# TODO - this function needs to handle errors gracefully when URL is incorrect or inaccessible
58+
def download_url_dependencies(url_mapping, update, retry_count = 10):
59+
for url in url_mapping:
60+
# convert targetPath to OS specific format
61+
tmp_path = os.path.join(script_root, url_mapping[url])
62+
63+
# clean up path, collapsing any ../ and converting / to \ for Windows
64+
target_path = os.path.normpath(tmp_path)
65+
66+
# TODO if update is defined - delete file and directory if they exist
67+
68+
# make target directory if it doesn't exist
69+
if not os.path.isdir(target_path):
70+
os.makedirs(target_path)
71+
72+
# generate the target zip file name from the source URL filename and the target path
73+
# note - this rule currently handles URLs that contain # and ? characters at the end
74+
# those currently used by Jenkins don't have this style
75+
zip_file_name = url.split('/')[-1].split('#')[0].split('?')[0]
76+
zip_path = os.path.join(target_path, zip_file_name)
77+
78+
# Build folder name for the zip_path.
79+
zip_file_path_list = zip_file_name.split(".")
80+
zip_file_path = os.path.join(target_path, zip_file_path_list[0])
81+
82+
if (os.path.isfile(zip_path)):
83+
# If the archive file exists, print message and continue
84+
log_print("URL Dependency %s found and not updated" % zip_path)
85+
elif (os.path.isdir(zip_file_path)):
86+
# If a folder of the same name as the archive exists, print message and continue
87+
log_print("URL Dependency %s found and not updated" % zip_file_path)
88+
else:
89+
# File doesn't exist - download and unpack it
90+
log_print("Downloading " + url + " into " + zip_path)
91+
try:
92+
urllib.urlretrieve(url, zip_path)
93+
except urllib.ContentTooShortError:
94+
os.remove(zip_path)
95+
if retry_count > 0:
96+
log_print("URL content too short. Retrying. Retries remaining: %d" % retry_count)
97+
download_url_dependencies(url_mapping, update, retry_count - 1)
98+
return
99+
100+
# Unpack the downloaded file into the target directory
101+
extension = os.path.splitext(zip_path)[1]
102+
if extension == ".zip":
103+
# if file extension is .zip then unzip it
104+
log_print("Extracting in " + target_path)
105+
zipfile.ZipFile(zip_path).extractall(target_path)
106+
# delete downloaded zip file
107+
os.remove(zip_path)
108+
elif extension == ".tgz" or extension == ".gz":
109+
# if file extension is .tgz then untar it
110+
log_print("Extracting in " + target_path)
111+
tarfile.open(zip_path).extractall(target_path)
112+
# delete downloaded tgz file
113+
os.remove(zip_path)
51114

52115
# Clone or update a git repo
53116
def update_git_dependencies(git_mapping, update):
@@ -115,6 +178,10 @@ def do_fetch_dependencies(update):
115178

116179
# Update all git dependencies
117180
if update_git_dependencies(git_mapping, update):
181+
if sys.platform == "win32":
182+
download_url_dependencies(url_mapping_win, update)
183+
elif sys.platform.startswith('linux') == True:
184+
download_url_dependencies(url_mapping_linux, update)
118185
return True
119186
else:
120187
return False

cmake/FindXCB.cmake

-51
This file was deleted.
-376 Bytes
Binary file not shown.
-6.63 KB
Binary file not shown.

shaders/Clear.ps.spv

-968 Bytes
Binary file not shown.

shaders/Clear.vs.spv

-588 Bytes
Binary file not shown.
-1.25 KB
Binary file not shown.
-5.05 KB
Binary file not shown.
-1.25 KB
Binary file not shown.
-5.05 KB
Binary file not shown.
-5.16 KB
Binary file not shown.
-4.8 KB
Binary file not shown.
-1.74 KB
Binary file not shown.
-4.8 KB
Binary file not shown.
-5.2 KB
Binary file not shown.
-4.81 KB
Binary file not shown.
-2.02 KB
Binary file not shown.
-4.8 KB
Binary file not shown.
-5.16 KB
Binary file not shown.
-4.8 KB
Binary file not shown.
-1.74 KB
Binary file not shown.
-4.8 KB
Binary file not shown.
-5.2 KB
Binary file not shown.
-4.81 KB
Binary file not shown.
-1.26 KB
Binary file not shown.
-5.52 KB
Binary file not shown.
-5.66 KB
Binary file not shown.
-5.1 KB
Binary file not shown.
-2.19 KB
Binary file not shown.
-5 KB
Binary file not shown.
-2.12 KB
Binary file not shown.
-4.8 KB
Binary file not shown.

shaders/GeometryColorLit.ps.spv

-5.18 KB
Binary file not shown.

shaders/GeometryColorLit.vs.spv

-5.82 KB
Binary file not shown.
-1.26 KB
Binary file not shown.
-5.05 KB
Binary file not shown.

shaders/GeometryColorOpacity.ps.spv

-4.87 KB
Binary file not shown.

shaders/GeometryColorOpacity.vs.spv

-5.31 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.26 KB
Binary file not shown.
-5.03 KB
Binary file not shown.

shaders/GeometryColorTechnical.ps.spv

-5.16 KB
Binary file not shown.

shaders/GeometryColorTechnical.vs.spv

-5.63 KB
Binary file not shown.

shaders/GeometryColorTreeLevel.ps.spv

-5.45 KB
Binary file not shown.

shaders/GeometryColorTreeLevel.vs.spv

-5.14 KB
Binary file not shown.
-5.07 KB
Binary file not shown.
-5.09 KB
Binary file not shown.
-5.35 KB
Binary file not shown.
-5.03 KB
Binary file not shown.
-4.87 KB
Binary file not shown.
-5.32 KB
Binary file not shown.

shaders/GeometryColorWireframe.ps.spv

-1.01 KB
Binary file not shown.

shaders/GeometryColorWireframe.vs.spv

-4.62 KB
Binary file not shown.
-1.26 KB
Binary file not shown.
-5.05 KB
Binary file not shown.
-1.26 KB
Binary file not shown.
-5.05 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

shaders/OrientationGizmo.ps.spv

-812 Bytes
Binary file not shown.

shaders/OrientationGizmo.vs.spv

-940 Bytes
Binary file not shown.
-6.09 KB
Binary file not shown.

shaders/RayInspectorOverlay.ps.spv

-4.86 KB
Binary file not shown.

shaders/RayInspectorOverlay.vs.spv

-5.97 KB
Binary file not shown.
-2.13 KB
Binary file not shown.
-3.63 KB
Binary file not shown.

shaders/SelectionVolume.ps.spv

-4.7 KB
Binary file not shown.

shaders/SelectionVolume.vs.spv

-4.93 KB
Binary file not shown.

shaders/TraversalShader.cs.spv

-34 KB
Binary file not shown.

shaders/TraversalShader.ps.spv

-11.7 KB
Binary file not shown.

shaders/TraversalShader.vs.spv

-848 Bytes
Binary file not shown.
-5.26 KB
Binary file not shown.

source/assets/PullDownOff_Gray.svg

+1

source/assets/PullDownOn_Gray.svg

+1

source/assets/amd_logo_white.svg

+1

source/assets/arrow_gray_left.svg

+1

source/assets/arrow_gray_right.svg

+1

source/assets/checkbox_off.svg

+1

source/assets/checkbox_off_gray.svg

+1

source/assets/checkbox_on.svg

+1

source/assets/checkbox_on_gray.svg

+1

0 commit comments

Comments
 (0)