Skip to content

Commit 1018431

Browse files
author
Alexey Panteleev
committed
Removed the RTXGI integration.
1 parent a496471 commit 1018431

34 files changed

Lines changed: 15 additions & 2280 deletions

.gitlab-ci.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ variables:
77
TEST_REPO_BRANCH: main
88

99
# Variables that should be specified from the project settings:
10-
# - GITHUB_USERNAME : username for the private dependencies on GitHub
11-
# - GITHUB_ACCESS_TOKEN : access token for the private dependencies on GitHub
1210
# - TEST_REPO_URL : URL of the repository with tests, including the username and token parts if necessary
1311
# - ENABLE_JOBS : list of jobs to run, such as "build-linux,test-linux"
1412

@@ -20,19 +18,6 @@ variables:
2018
# - Python 3.8+ and scikit-image
2119

2220

23-
# Add the GitHub credentials for the submodules
24-
.checkout-submodules: &checkout-submodules
25-
- git submodule set-url RTXGI https://${GITHUB_USERNAME}:${GITHUB_ACCESS_TOKEN}@github.com/NVIDIAGameWorks/RTXGI.git
26-
- git submodule set-url NRD https://${GITHUB_USERNAME}:${GITHUB_ACCESS_TOKEN}@github.com/NVIDIAGameWorks/RayTracingDenoiser.git
27-
- git submodule update --init --recursive
28-
29-
30-
# Remove the credentials to avoid storing them in the runner working tree
31-
.cleanup-submodules: &cleanup-submodules
32-
- git submodule set-url RTXGI https://github.com/NVIDIAGameWorks/RTXGI.git
33-
- git submodule set-url NRD https://github.com/NVIDIAGameWorks/RayTracingDenoiser.git
34-
35-
3621
# Clone the tests repository
3722
.clone-tests: &clone-tests
3823
- git clone -b ${TEST_REPO_BRANCH} ${TEST_REPO_URL} tests
@@ -45,14 +30,11 @@ build-linux:
4530
rules:
4631
- if: '$ENABLE_JOBS =~ /build-linux/'
4732
before_script:
48-
- *checkout-submodules
4933
- ./update_dependencies.sh
5034
script:
5135
- mkdir build && cd build
5236
- cmake .. -GNinja
5337
- ninja
54-
after_script:
55-
- *cleanup-submodules
5638
artifacts:
5739
name: "rtxdi-linux-${CI_COMMIT_SHORT_SHA}"
5840
paths:
@@ -65,16 +47,13 @@ build-windows:
6547
rules:
6648
- if: '$ENABLE_JOBS =~ /build-windows/'
6749
before_script:
68-
- *checkout-submodules
6950
- ./update_dependencies.bat
7051
script:
7152
- ./set_vs_vars.ps1
7253
- mkdir build
7354
- cd build
7455
- cmake .. -GNinja -DRTXDI_CONSOLE_APP=ON
7556
- cmake --build .
76-
after_script:
77-
- *cleanup-submodules
7857
artifacts:
7958
name: "rtxdi-windows-${CI_COMMIT_SHORT_SHA}"
8059
paths:

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@
77
[submodule "DLSS"]
88
path = DLSS
99
url = https://github.com/NVIDIA/DLSS.git
10-
[submodule "RTXGI"]
11-
path = RTXGI
12-
url = https://github.com/NVIDIAGameWorks/RTXGI.git

CMakeLists.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,6 @@ set(DONUT_PATH "${CMAKE_CURRENT_LIST_DIR}/donut")
7070
include(NRD.cmake)
7171
include(DLSS.cmake)
7272

73-
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/RTXGI/CMakeLists.txt")
74-
option(RTXDI_WITH_RTXGI "Enable the RTXGI integration" ON)
75-
76-
if (RTXDI_WITH_RTXGI)
77-
option(RTXGI_DDGI_RESOURCE_MANAGEMENT "" ON)
78-
option(RTXGI_DDGI_USE_SHADER_CONFIG_FILE "" ON)
79-
80-
if (UNIX)
81-
set(RTXGI_API_VULKAN_SDK ON)
82-
set(Vulkan_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/donut/nvrhi/thirdparty/Vulkan-Headers/include")
83-
endif()
84-
85-
add_subdirectory(RTXGI)
86-
endif()
87-
endif()
88-
8973
set(GLSLANG_PATH "" CACHE STRING "Path to glslangValidator for GLSL header verification (optional)")
9074

9175
# Temporarily use cxxopts from NVRHI

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ For more information about RTXDI, see the [NVIDIA Developer Page](https://develo
3232

3333
[`DLSS`](DLSS) is a submodule with the [Deep Learning Super-Sampling SDK](https://github.com/NVIDIA/DLSS).
3434

35-
[`RTXGI`](RTXGI) is a submodule with the [RTX Global Illumination SDK](https://github.com/NVIDIAGameWorks/RTXGI).
36-
3735
Additional contents delivered through packman:
3836

3937
`dxc` is a recent version of DirectX Shader Compiler;

RTXGI

Lines changed: 0 additions & 1 deletion
This file was deleted.

shaders/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
include("${DONUT_PATH}/compileshaders.cmake")
3-
file(GLOB shaders "*.h*" "LightingPasses/*.h*" "RTXGI/*.h*" "DebugViz/*.h*" "../rtxdi-sdk/shaders/*.hlsl" "../rtxdi-sdk/include/*.hlsli")
3+
file(GLOB shaders "*.h*" "LightingPasses/*.h*" "DebugViz/*.h*" "../rtxdi-sdk/shaders/*.hlsl" "../rtxdi-sdk/include/*.hlsli")
44

55
set(project rtxdi-sample)
66
set(folder "RTXDI SDK")
@@ -16,12 +16,6 @@ else()
1616
set(NRD_OPTIONS --relaxedInclude NRD.hlsli)
1717
endif()
1818

19-
if (TARGET RTXGI-D3D12 OR TARGET RTXGI-VK)
20-
set(RTXGI_OPTIONS -D WITH_RTXGI)
21-
else()
22-
set(RTXGI_OPTIONS --relaxedInclude "ddgi/Irradiance.hlsl")
23-
endif()
24-
2519
set (OUTPUT_PATH_BASE "${CMAKE_BINARY_DIR}/bin/shaders/rtxdi-sample")
2620

2721
if (WIN32)
@@ -38,12 +32,8 @@ if (DONUT_WITH_DX12)
3832
--outputExt .bin
3933
-I ${DONUT_SHADER_INCLUDE_DIR}
4034
-I ${CMAKE_CURRENT_SOURCE_DIR}/../rtxdi-sdk/include
41-
-I ${CMAKE_CURRENT_SOURCE_DIR}/../RTXGI/shaders
42-
-I ${CMAKE_CURRENT_SOURCE_DIR}/RTXGI
4335
--relaxedInclude "../Types.h"
44-
--relaxedInclude "rtxgi\\Types.h"
4536
${NRD_OPTIONS}
46-
${RTXGI_OPTIONS}
4737
${USE_API_OPTION}
4838
--compiler ${DXC_PATH})
4939

@@ -63,12 +53,8 @@ if (DONUT_WITH_VULKAN)
6353
--outputExt .bin
6454
-I ${DONUT_SHADER_INCLUDE_DIR}
6555
-I ${CMAKE_CURRENT_SOURCE_DIR}/../rtxdi-sdk/include
66-
-I ${CMAKE_CURRENT_SOURCE_DIR}/../RTXGI/shaders
67-
-I ${CMAKE_CURRENT_SOURCE_DIR}/RTXGI
6856
--relaxedInclude "../Types.h"
69-
--relaxedInclude "rtxgi\\Types.h"
7057
${NRD_OPTIONS}
71-
${RTXGI_OPTIONS}
7258
${USE_API_OPTION}
7359
${NVRHI_DEFAULT_VK_REGISTER_OFFSETS}
7460
-D SPIRV

shaders/CompositingPass.hlsl

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ Texture2D t_DenoisedSpecular : register(t8);
3636

3737
SamplerState s_EnvironmentSampler : register(s0);
3838

39-
#ifdef WITH_RTXGI
40-
#include "RtxgiHelpers.hlsli"
41-
StructuredBuffer<DDGIVolumeDescGPUPacked> t_DDGIVolumes : register(t10 VK_DESCRIPTOR_SET(2));
42-
StructuredBuffer<DDGIVolumeResourceIndices> t_DDGIVolumeResourceIndices : register(t11 VK_DESCRIPTOR_SET(2));
43-
SamplerState s_ProbeSampler : register(s10 VK_DESCRIPTOR_SET(2));
44-
#endif
45-
4639
[numthreads(8, 8, 1)]
4740
void main(uint2 globalIdx : SV_DispatchThreadID)
4841
{
@@ -92,24 +85,6 @@ void main(uint2 globalIdx : SV_DispatchThreadID)
9285
compositedColor = diffuse_illumination.rgb;
9386
compositedColor += specular_illumination.rgb;
9487
compositedColor += emissive.rgb;
95-
96-
#ifdef WITH_RTXGI
97-
if (g_Const.numRtxgiVolumes)
98-
{
99-
float3 worldPosition = viewDepthToWorldPos(g_Const.view, globalIdx, depth);
100-
101-
float3 indirectIrradiance = GetIrradianceFromDDGI(
102-
worldPosition,
103-
normal,
104-
g_Const.view.cameraDirectionOrPosition.xyz,
105-
g_Const.numRtxgiVolumes,
106-
t_DDGIVolumes,
107-
t_DDGIVolumeResourceIndices,
108-
s_ProbeSampler);
109-
110-
compositedColor += diffuseAlbedo * indirectIrradiance;
111-
}
112-
#endif
11388
}
11489
else
11590
{

shaders/LightingPasses/ShadeSecondarySurfaces.hlsl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626

2727
#include "ShadingHelpers.hlsli"
2828

29-
#ifdef WITH_RTXGI
30-
#include "RtxgiHelpers.hlsli"
31-
StructuredBuffer<DDGIVolumeDescGPUPacked> t_DDGIVolumes : register(t40 VK_DESCRIPTOR_SET(2));
32-
StructuredBuffer<DDGIVolumeResourceIndices> t_DDGIVolumeResourceIndices : register(t41 VK_DESCRIPTOR_SET(2));
33-
SamplerState s_ProbeSampler : register(s40 VK_DESCRIPTOR_SET(2));
34-
#endif
35-
3629
static const float c_MaxIndirectRadiance = 10;
3730

3831
#if USE_RAY_QUERY
@@ -140,22 +133,6 @@ void RayGen()
140133
float indirectLuminance = calcLuminance(radiance);
141134
if (indirectLuminance > c_MaxIndirectRadiance)
142135
radiance *= c_MaxIndirectRadiance / indirectLuminance;
143-
144-
#ifdef WITH_RTXGI
145-
if (g_Const.numRtxgiVolumes)
146-
{
147-
float3 indirectIrradiance = GetIrradianceFromDDGI(
148-
secondarySurface.worldPos,
149-
secondarySurface.normal,
150-
primarySurface.worldPos,
151-
g_Const.numRtxgiVolumes,
152-
t_DDGIVolumes,
153-
t_DDGIVolumeResourceIndices,
154-
s_ProbeSampler);
155-
156-
radiance += indirectIrradiance * secondarySurface.diffuseAlbedo;
157-
}
158-
#endif
159136
}
160137

161138
bool outputShadingResult = true;

shaders/RTXGI/DDGIShaderConfig.h

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

shaders/RTXGI/ProbeDebug.hlsl

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

0 commit comments

Comments
 (0)