aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-02-06 00:19:31 -0300
committerGitHub <noreply@github.com>2023-02-06 00:19:31 -0300
commit7528f945361a52a0f1b3cd604ae8c203a9670111 (patch)
treed6a20114cbf5d390450b685993e98adb7e1a2c0f /Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag
parent43081c16c48d73dfd585d951281fcbd60bebccbc (diff)
Implement safe depth-stencil blit using stencil export extension (#4356)1.1.601
* Implement safe depth-stencil blit using stencil export extension * Delete depth-stencil blit with buffer path
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag')
-rw-r--r--Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag b/Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag
new file mode 100644
index 00000000..55b7be13
--- /dev/null
+++ b/Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag
@@ -0,0 +1,10 @@
+#version 450 core
+
+layout (binding = 0, set = 2) uniform sampler2D texDepth;
+
+layout (location = 0) in vec2 tex_coord;
+
+void main()
+{
+ gl_FragDepth = texture(texDepth, tex_coord).r;
+} \ No newline at end of file