summaryrefslogtreecommitdiffstats
path: root/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag')
-rw-r--r--src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag
new file mode 100644
index 00000000..a5eaf4e9
--- /dev/null
+++ b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_copy_depth_2d.frag
@@ -0,0 +1,14 @@
+#version 450
+
+layout(set = 0, binding = 0)
+uniform sampler2DArray s_image;
+
+layout(push_constant)
+uniform u_info_t {
+ ivec2 offset;
+} u_info;
+
+void main() {
+ gl_FragDepth = texelFetch(s_image,
+ ivec3(gl_FragCoord.xy + u_info.offset, gl_Layer), 0).r;
+} \ No newline at end of file