Skip to content

Commit

Permalink
Update source code for RRA v1.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosier committed Oct 3, 2024
1 parent dde6f71 commit b2a09c1
Show file tree
Hide file tree
Showing 261 changed files with 8,907 additions and 2,228 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ project(RRA)

# Define version information
set(RRA_MAJOR_VERSION 1)
set(RRA_MINOR_VERSION 6)
set(RRA_MINOR_VERSION 7)
if (NOT RRA_BUGFIX_NUMBER)
set(RRA_BUGFIX_NUMBER 0)
endif ()
Expand Down
16 changes: 13 additions & 3 deletions build/dependency_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@
# each git dependency has a desired directory where it will be cloned - along with a commit to checkout
# 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.
git_mapping = {
github_tools + "qt_common" : ["../external/qt_common", "v4.0.0", True],
github_tools + "qt_common" : ["../external/qt_common", "v4.1.0", True],
github_tools + "update_check_api" : ["../external/update_check_api", "v2.1.1", True],
github_tools + "system_info_utils" : ["../external/system_info_utils", "88a338a01949f8d8bad60a30b78b65300fd13a9f", False],
github_tools + "system_info_utils" : ["../external/system_info_utils", "v2.0", True],
github_root + "g-truc/glm" : ["../external/third_party/glm", "0.9.9.8", True],
github_root + "KhronosGroup/Vulkan-Headers" : ["../external/third_party/vulkan", "sdk-1.3.211", True],
github_root + "zeux/volk" : ["../external/third_party/volk", "1.2.190", True],
github_root + "GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator" : ["../external/vma", "d2f0313d20c803f83cc3637ac1facf8e4d6899e4", False],
github_root + "GPUOpen-Drivers/libamdrdf" : ["../external/rdf", "v1.1.2", True],
github_root + "GPUOpen-Drivers/libamdrdf" : ["../external/rdf", "v1.4.0", True],
}

# Downloads required for Windows builds.
url_mapping_win = {
"https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2308/dxc_2023_08_14.zip" : "../external/third_party/dxc",
}

# Downloads required for Linux builds.
url_mapping_linux = {
"https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2308/linux_dxc_2023_08_14.x86_64.tar.gz" : "../external/third_party/dxc",
}
67 changes: 67 additions & 0 deletions build/fetch_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,69 @@ def log_print(message):
# add script root to support import of URL and git maps
sys.path.append(script_root)
from dependency_map import git_mapping
from dependency_map import url_mapping_win
from dependency_map import url_mapping_linux

# Download a zip or tgz file from the specified URL and unzip into the directory defined by destination.
# The destination directory will be created if it doesn't exist
# if the 'update' parameter is true then the existing file and output directory will be deleted and re-created
# TODO - this function needs to handle errors gracefully when URL is incorrect or inaccessible
def download_url_dependencies(url_mapping, update, retry_count = 10):
for url in url_mapping:
# convert targetPath to OS specific format
tmp_path = os.path.join(script_root, url_mapping[url])

# clean up path, collapsing any ../ and converting / to \ for Windows
target_path = os.path.normpath(tmp_path)

# TODO if update is defined - delete file and directory if they exist

# make target directory if it doesn't exist
if not os.path.isdir(target_path):
os.makedirs(target_path)

# generate the target zip file name from the source URL filename and the target path
# note - this rule currently handles URLs that contain # and ? characters at the end
# those currently used by Jenkins don't have this style
zip_file_name = url.split('/')[-1].split('#')[0].split('?')[0]
zip_path = os.path.join(target_path, zip_file_name)

# Build folder name for the zip_path.
zip_file_path_list = zip_file_name.split(".")
zip_file_path = os.path.join(target_path, zip_file_path_list[0])

if (os.path.isfile(zip_path)):
# If the archive file exists, print message and continue
log_print("URL Dependency %s found and not updated" % zip_path)
elif (os.path.isdir(zip_file_path)):
# If a folder of the same name as the archive exists, print message and continue
log_print("URL Dependency %s found and not updated" % zip_file_path)
else:
# File doesn't exist - download and unpack it
log_print("Downloading " + url + " into " + zip_path)
try:
urllib.urlretrieve(url, zip_path)
except urllib.ContentTooShortError:
os.remove(zip_path)
if retry_count > 0:
log_print("URL content too short. Retrying. Retries remaining: %d" % retry_count)
download_url_dependencies(url_mapping, update, retry_count - 1)
return

# Unpack the downloaded file into the target directory
extension = os.path.splitext(zip_path)[1]
if extension == ".zip":
# if file extension is .zip then unzip it
log_print("Extracting in " + target_path)
zipfile.ZipFile(zip_path).extractall(target_path)
# delete downloaded zip file
os.remove(zip_path)
elif extension == ".tgz" or extension == ".gz":
# if file extension is .tgz then untar it
log_print("Extracting in " + target_path)
tarfile.open(zip_path).extractall(target_path)
# delete downloaded tgz file
os.remove(zip_path)

# Clone or update a git repo
def update_git_dependencies(git_mapping, update):
Expand Down Expand Up @@ -115,6 +178,10 @@ def do_fetch_dependencies(update):

# Update all git dependencies
if update_git_dependencies(git_mapping, update):
if sys.platform == "win32":
download_url_dependencies(url_mapping_win, update)
elif sys.platform.startswith('linux') == True:
download_url_dependencies(url_mapping_linux, update)
return True
else:
return False
Expand Down
51 changes: 0 additions & 51 deletions cmake/FindXCB.cmake

This file was deleted.

Binary file removed shaders/BoundingVolumeHierarchyWire.ps.spv
Binary file not shown.
Binary file removed shaders/BoundingVolumeHierarchyWire.vs.spv
Binary file not shown.
Binary file removed shaders/Clear.ps.spv
Binary file not shown.
Binary file removed shaders/Clear.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorAllowCompactionFlag.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorAllowCompactionFlag.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorAllowUpdateFlag.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorAllowUpdateFlag.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasAverageDepth.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasAverageDepth.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasAverageSAH.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasAverageSAH.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasInstanceCount.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasInstanceCount.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasInstanceId.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasInstanceId.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasMaxDepth.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasMaxDepth.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasMinSAH.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasMinSAH.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasTriangleCount.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorBlasTriangleCount.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorFinalOpacity.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorFinalOpacity.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorGeometryIndex.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorGeometryIndex.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorInstanceIndex.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorInstanceIndex.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorInstanceMask.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorInstanceMask.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorLit.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorLit.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorLowMemoryFlag.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorLowMemoryFlag.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorOpacity.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorOpacity.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorPreferFastBuildOrTrace.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorPreferFastBuildOrTrace.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorRebraiding.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorRebraiding.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTechnical.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTechnical.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTreeLevel.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTreeLevel.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleIndex.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleIndex.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleSAH.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleSAH.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleSplitting.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorTriangleSplitting.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryColorWireframe.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryColorWireframe.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceFacingCullDisable.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceFacingCullDisable.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceFlipFacing.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceFlipFacing.vs.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceForceOpaqueOrNoOpaque.ps.spv
Binary file not shown.
Binary file removed shaders/GeometryInstanceForceOpaqueOrNoOpaque.vs.spv
Binary file not shown.
Binary file removed shaders/OrientationGizmo.ps.spv
Binary file not shown.
Binary file removed shaders/OrientationGizmo.vs.spv
Binary file not shown.
Binary file removed shaders/RayHistoryOffscreenRenderer.cs.spv
Binary file not shown.
Binary file removed shaders/RayInspectorOverlay.ps.spv
Binary file not shown.
Binary file removed shaders/RayInspectorOverlay.vs.spv
Binary file not shown.
Binary file removed shaders/RayInspectorOverlayIcons.ps.spv
Binary file not shown.
Binary file removed shaders/RayInspectorOverlayIcons.vs.spv
Binary file not shown.
Binary file removed shaders/SelectionVolume.ps.spv
Binary file not shown.
Binary file removed shaders/SelectionVolume.vs.spv
Binary file not shown.
Binary file removed shaders/TraversalShader.cs.spv
Binary file not shown.
Binary file removed shaders/TraversalShader.ps.spv
Binary file not shown.
Binary file removed shaders/TraversalShader.vs.spv
Binary file not shown.
Binary file removed shaders/TraversalShaderSubsample.cs.spv
Binary file not shown.
1 change: 1 addition & 0 deletions source/assets/PullDownOff_Gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/PullDownOn_Gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/amd_logo_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/arrow_gray_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/arrow_gray_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/checkbox_off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/checkbox_off_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/checkbox_on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/assets/checkbox_on_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b2a09c1

Please sign in to comment.