Skip to content

Commit

Permalink
Fix sgsr2 shader code and include and add missing project into Androi…
Browse files Browse the repository at this point in the history
…d project

Signed-off-by: Rodrigo Holztrattner <[email protected]>
  • Loading branch information
RodrigoHolztrattner-QuIC committed Dec 4, 2024
1 parent 8310484 commit 91bd6d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ':empty', ':hello-gltf', ':hdrSwapchain', ':SubPass', ':shaderResolveTonemap', ':rotatedCopy', ':BloomImageProcessing', ':rayQueryShadows',':rayReflections',':sgsr'
include ':empty', ':hello-gltf', ':hdrSwapchain', ':SubPass', ':shaderResolveTonemap', ':rotatedCopy', ':BloomImageProcessing', ':rayQueryShadows',':rayReflections',':sgsr',':sgsr2'

project(':empty').projectDir = new File('../../samples/empty')
project(':hello-gltf').projectDir = new File('../../samples/hello-gltf')
Expand Down
5 changes: 1 addition & 4 deletions samples/sgsr2/shaders/sgsr2_activate.comp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 320 es

//============================================================================================================
//
//
Expand Down Expand Up @@ -88,10 +89,6 @@ void main()
float Ksep = 1.37e-05f;
float Kfov = params.cameraFovAngleHor;
float Ksep_Kfov_diagonal = Ksep * Kfov * diagonal_length;
<<<<<<< HEAD
=======

>>>>>>> main
for (int index = 0; index < 4; index+=2){
vec4 gPrevdepth = textureGatherOffset(MotionDepthAlphaBuffer, PrevUV, sampleOffset[index], 2);
float tdepth1 = min(gPrevdepth.x, gPrevdepth.y);
Expand Down
1 change: 1 addition & 0 deletions samples/sgsr2/shaders/sgsr2_convert.comp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 320 es

//============================================================================================================
//
//
Expand Down
2 changes: 1 addition & 1 deletion samples/sgsr2/shaders/sgsr2_convert2.frag
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ void main()
}
MotionDepthClipAlphaBuffer = vec4(motion, depthclip, 0.0);

}
}
1 change: 1 addition & 0 deletions samples/sgsr2/shaders/sgsr2_upscale.comp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#version 320 es

//============================================================================================================
//
//
Expand Down
2 changes: 1 addition & 1 deletion samples/sgsr2/shaders/sgsr2_upscale2.frag
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ void main()
Upsampledcw.xyz = mix(HistoryColor, Upsampledcw.xyz, alpha);

Output = vec4(Upsampledcw.xyz, 0.0);
}
}

0 comments on commit 91bd6d3

Please sign in to comment.