aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag')
-rw-r--r--Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag b/Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag
new file mode 100644
index 00000000..1919269b
--- /dev/null
+++ b/Ryujinx.Graphics.Vulkan/Shaders/StencilBlitFragmentShaderSource.frag
@@ -0,0 +1,12 @@
+#version 450 core
+
+#extension GL_ARB_shader_stencil_export : require
+
+layout (binding = 0, set = 2) uniform isampler2D texStencil;
+
+layout (location = 0) in vec2 tex_coord;
+
+void main()
+{
+ gl_FragStencilRefARB = texture(texStencil, tex_coord).r;
+} \ No newline at end of file