mirror of https://github.com/doitsujin/dxvk
21 lines
398 B
GLSL
21 lines
398 B
GLSL
#version 450
|
|
|
|
#extension GL_EXT_samplerless_texture_functions : require
|
|
|
|
layout(set = 0, binding = 0)
|
|
uniform texture1DArray s_image;
|
|
|
|
layout(location = 0) out vec4 o_color;
|
|
|
|
layout(push_constant)
|
|
uniform u_info_t {
|
|
ivec2 offset;
|
|
} u_info;
|
|
|
|
void main() {
|
|
vec4 color = texelFetch(s_image,
|
|
ivec2(gl_FragCoord.x + u_info.offset.x, gl_Layer), 0);
|
|
o_color = color;
|
|
gl_FragDepth = color.r;
|
|
}
|