From e7b0512c5f91492151949c72f47f014b829ebbe1 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 17:57:45 -0300 Subject: [PATCH 01/10] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 66f19a8..e0c1539 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,16 @@ While this patch file targets URP 10.6.0 in particular, you can still use this p # Integration Method ## Method 1. git apply -Use `git apply ` when it's possible, from the correct place in your Unity project. +Example: +I have my project in: +`E:/Unity/The Game/` + +I should put the `.patch` file in `E:/Unity/The Game/library/PackageCache` +I should make a console and write +``` +cd E:/Unity/The Game/library/PackageCache +git apply FSR1.0-For-URP10.6.0-Patch.patch +``` ## Method 2. manually merge Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. From f94d85757b99c6a417ed1851c4e4a0eac3111ec0 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:40:22 -0300 Subject: [PATCH 02/10] Rename FSR1.0-For-URP10.6.0-Patch.patch to FSR1.0-URP10.6.0.patch --- FSR1.0-For-URP10.6.0-Patch.patch => FSR1.0-URP10.6.0.patch | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename FSR1.0-For-URP10.6.0-Patch.patch => FSR1.0-URP10.6.0.patch (100%) diff --git a/FSR1.0-For-URP10.6.0-Patch.patch b/FSR1.0-URP10.6.0.patch similarity index 100% rename from FSR1.0-For-URP10.6.0-Patch.patch rename to FSR1.0-URP10.6.0.patch From 988de0b58da6b65f4c5e5a563e03ac4eea5c3d0c Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:44:49 -0300 Subject: [PATCH 03/10] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e0c1539..b09f386 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,13 @@ While this patch file targets URP 10.6.0 in particular, you can still use this p # Integration Method -## Method 1. git apply +> For method 1 and 2 you need to have [git](https://git-scm.com/downloads) installed + +## Method 1. running installPatch.bat + +Download the `installPatch.bat` file and put it into the root folder of your unity project, then run it by double clicking + +## Method 2. git apply Example: I have my project in: `E:/Unity/The Game/` @@ -15,10 +21,10 @@ I should put the `.patch` file in `E:/Unity/The Game/library/PackageCache` I should make a console and write ``` cd E:/Unity/The Game/library/PackageCache -git apply FSR1.0-For-URP10.6.0-Patch.patch +git apply FSR1.0-URP10.6.0.patch ``` -## Method 2. manually merge +## Method 3. manually merge Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. # Usage From 049c53f943ff46f385857592608f47aa6731f991 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:45:55 -0300 Subject: [PATCH 04/10] needs testing --- installPatch.bat | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 installPatch.bat diff --git a/installPatch.bat b/installPatch.bat new file mode 100644 index 0000000..20968d8 --- /dev/null +++ b/installPatch.bat @@ -0,0 +1,29 @@ +@echo off + +where /Q git +if ERRORLEVEL 1 ( + echo You must install GIT. + goto end +) + +cd library/PackageCache/ +if exist com.unity.render-pipelines.universal goto install + + +echo The unity project does not have an compatible URP (Universal Render Pipelines^) +:option +set /p continue= Try to install anyway ? (Y/N) + +if %continue% == N exit +if %continue% neq Y ( + echo Invalid option + goto option +) + +:install +curl "https://raw.githubusercontent.com/GPUOpen-Effects/FidelityFX-FSR-Unity-URP/c96f5b0843cd56132693953f190e54eb93b58849/FSR1.0-For-URP10.6.0-Patch.patch" | git apply + +:end +echo: +pause +exit From 7238051faf495c6902e8f3b7b7f585dc5f63bdee Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:47:36 -0300 Subject: [PATCH 05/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b09f386..22714d7 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ AMD FidelityFX Super Resolution (FSR) is an open source, high-quality solution for producing high resolution frames from lower resolution inputs. It uses a collection of cutting-edge algorithms with a particular emphasis on creating high-quality edges, giving large performance improvements compared to rendering at native resolution directly. FSR enables “practical performance” for costly render operations, such as hardware ray tracing. # Version -While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes. +While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes. You could try method 1 and 2, bu # Integration Method > For method 1 and 2 you need to have [git](https://git-scm.com/downloads) installed -## Method 1. running installPatch.bat +## Method 1. running `installPatch.bat` Download the `installPatch.bat` file and put it into the root folder of your unity project, then run it by double clicking From 23b21a89acd34fe64fbb9a160a34ca6773301417 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:50:39 -0300 Subject: [PATCH 06/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22714d7..6f34dee 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ AMD FidelityFX Super Resolution (FSR) is an open source, high-quality solution for producing high resolution frames from lower resolution inputs. It uses a collection of cutting-edge algorithms with a particular emphasis on creating high-quality edges, giving large performance improvements compared to rendering at native resolution directly. FSR enables “practical performance” for costly render operations, such as hardware ray tracing. # Version -While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes. You could try method 1 and 2, bu +While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes, you could try method 1 and 2 for other versions, but will surely need using the method 3. # Integration Method @@ -25,7 +25,7 @@ git apply FSR1.0-URP10.6.0.patch ``` ## Method 3. manually merge -Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. +Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. It's in # Usage After toggling on the Camera post-processing, the option for `AMD FSR 1.0` will appear below it. You can choose different FSR modes according to your requirements. From 7e9f9231a40d9113bb9642662b80203a109c7eba Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 22:57:32 -0300 Subject: [PATCH 07/10] Update README.md --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6f34dee..dd73aa4 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,28 @@ While this patch file targets URP 10.6.0 in particular, you can still use this p Download the `installPatch.bat` file and put it into the root folder of your unity project, then run it by double clicking -## Method 2. git apply +## Method 2. git apply and curl + +Example: +I have my project in: `E:\Unity\The Game\` + +``` +cd /D E:\Unity\The Game\library\PackageCache +curl "https://raw.githubusercontent.com/GPUOpen-Effects/FidelityFX-FSR-Unity-URP/c96f5b0843cd56132693953f190e54eb93b58849/FSR1.0-For-URP10.6.0-Patch.patch" | git apply +``` + +## Method 3. git apply Example: -I have my project in: -`E:/Unity/The Game/` +I have my project in: `E:\Unity\The Game\` -I should put the `.patch` file in `E:/Unity/The Game/library/PackageCache` -I should make a console and write +I should put the `.patch` file in `E:/Unity/The Game/library/PackageCache`. +I should make a console and write. ``` -cd E:/Unity/The Game/library/PackageCache +cd /D E:\Unity\The Game\library\PackageCache git apply FSR1.0-URP10.6.0.patch ``` -## Method 3. manually merge +## Method 4. manually merge Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. It's in # Usage From 2d663f8433bad98ab2793cfccf29ec46069e6844 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 23:28:48 -0300 Subject: [PATCH 08/10] Update installPatch.bat --- installPatch.bat | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/installPatch.bat b/installPatch.bat index 20968d8..69fa93e 100644 --- a/installPatch.bat +++ b/installPatch.bat @@ -6,22 +6,28 @@ if ERRORLEVEL 1 ( goto end ) +if not exist library/PackageCache/ ( + echo The script must be executed in a unity project + goto end +) cd library/PackageCache/ -if exist com.unity.render-pipelines.universal goto install +if not exist "com.unity.render-pipelines.universal*" ( + echo The unity project does not have any URP (Universal Render Pipelines^) + goto end +) -echo The unity project does not have an compatible URP (Universal Render Pipelines^) -:option -set /p continue= Try to install anyway ? (Y/N) +curl "https://raw.githubusercontent.com/GPUOpen-Effects/FidelityFX-FSR-Unity-URP/c96f5b0843cd56132693953f190e54eb93b58849/FSR1.0-For-URP10.6.0-Patch.patch" --output FSR1.0-URP10.6.0.patch -if %continue% == N exit -if %continue% neq Y ( - echo Invalid option - goto option +for /D %%x in ("com.unity.render-pipelines.universal*") do ( + rename %%x com.unity.render-pipelines.universal + + git apply FSR1.0-URP10.6.0.patch + + rename com.unity.render-pipelines.universal %%x ) -:install -curl "https://raw.githubusercontent.com/GPUOpen-Effects/FidelityFX-FSR-Unity-URP/c96f5b0843cd56132693953f190e54eb93b58849/FSR1.0-For-URP10.6.0-Patch.patch" | git apply +del /q FSR1.0-URP10.6.0.patch :end echo: From ec0224dcaa929fe784d102a92beeffc87e560433 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 23:32:40 -0300 Subject: [PATCH 09/10] Update README.md --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dd73aa4..d515436 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,12 @@ While this patch file targets URP 10.6.0 in particular, you can still use this p # Integration Method -> For method 1 and 2 you need to have [git](https://git-scm.com/downloads) installed +> For method 1, 2 and 3 you need to have [git](https://git-scm.com/downloads) installed ## Method 1. running `installPatch.bat` -Download the `installPatch.bat` file and put it into the root folder of your unity project, then run it by double clicking +Download the `installPatch.bat` file and put it into the root folder of your unity project. +Then run it by double clicking. ## Method 2. git apply and curl @@ -24,17 +25,15 @@ curl "https://raw.githubusercontent.com/GPUOpen-Effects/FidelityFX-FSR-Unity-URP ## Method 3. git apply Example: -I have my project in: `E:\Unity\The Game\` - -I should put the `.patch` file in `E:/Unity/The Game/library/PackageCache`. -I should make a console and write. +I have my project in: `E:\Unity\The Game\` then, I should put the `.patch` file in `E:\Unity\The Game\library\PackageCache`. +Finally, I should make a console and write. ``` cd /D E:\Unity\The Game\library\PackageCache git apply FSR1.0-URP10.6.0.patch ``` ## Method 4. manually merge -Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. It's in +Use a normal editor to open this patch file. Look through all the diffs, and merge it into your local URP code manually. # Usage After toggling on the Camera post-processing, the option for `AMD FSR 1.0` will appear below it. You can choose different FSR modes according to your requirements. From f15bcc9a4227e948411d11e2876e8f728cc9ad33 Mon Sep 17 00:00:00 2001 From: Fabricio-191 Date: Fri, 28 Jan 2022 23:34:55 -0300 Subject: [PATCH 10/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d515436..587dc3e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ AMD FidelityFX Super Resolution (FSR) is an open source, high-quality solution for producing high resolution frames from lower resolution inputs. It uses a collection of cutting-edge algorithms with a particular emphasis on creating high-quality edges, giving large performance improvements compared to rendering at native resolution directly. FSR enables “practical performance” for costly render operations, such as hardware ray tracing. # Version -While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes, you could try method 1 and 2 for other versions, but will surely need using the method 3. +While this patch file targets URP 10.6.0 in particular, you can still use this patch for other versions (including newer) with a few careful changes, you probably will need to using the method 4. # Integration Method