forked from NVIDIAGameWorks/RayTracingDenoiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3-Prepare NRD SDK.sh
42 lines (32 loc) · 961 Bytes
/
3-Prepare NRD SDK.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
NRD_DIR=.
rm -rf "_NRD_SDK"
mkdir -p "_NRD_SDK/Include"
mkdir -p "_NRD_SDK/Lib/Debug"
mkdir -p "_NRD_SDK/Lib/Release"
mkdir -p "_NRD_SDK/Shaders"
mkdir -p "_NRD_SDK/Shaders/Include"
cd "_NRD_SDK"
cp -r ../$NRD_DIR/Include/ "Include"
cp -H ../_Bin/Debug/libNRD.so "Lib/Debug"
cp -H ../_Bin/Release/libNRD.so "Lib/Release"
cp ../$NRD_DIR/Shaders/Include/NRD.hlsli "Shaders/Include"
cp ../$NRD_DIR/Shaders/Include/NRDEncoding.hlsli "Shaders/Include"
cp ../$NRD_DIR/LICENSE.txt "."
cp ../$NRD_DIR/README.md "."
read -p "Do you need the shader source code for a white-box integration? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
mkdir -p "Shaders"
cp -r ../$NRD_DIR/Shaders/ "Shaders"
cp ../$NRD_DIR/External/MathLib/*.hlsli "Shaders\Source"
fi
read -p "Do you need NRD integration layer? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
mkdir -p "Integration"
cp -r ../$NRD_DIR/Integration/ "Integration"
fi
cd ..