1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/shaders/dxvk_copy_depth_2d.frag
Philip Rebohle c11d492597
[dxvk] Add meta copy shaders
Used to copy between depth and color images.
2018-09-27 11:44:09 +02:00

14 lines
256 B
GLSL

#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;
}