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