summaryrefslogtreecommitdiffstats
path: root/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_resolve_frag_u.frag
blob: 3d3cfdf3643cfd932e781dd363b68dea91cc9ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 450

layout(binding = 0) uniform usampler2DMSArray s_image;

layout(location = 0) out uvec4 o_color;

layout(push_constant)
uniform u_info_t {
  ivec2 offset;
} u_info;

void main() {
  ivec3 coord = ivec3(gl_FragCoord.xy + u_info.offset, gl_Layer);
  o_color = texelFetch(s_image, coord, 0);
}