aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/Shaders/DepthBlitFragmentShaderSource.frag
diff options
context:
space:
mode:
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