1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/shaders/dxvk_resolve_frag_u.frag

15 lines
303 B
GLSL
Raw Normal View History

2019-04-07 18:22:04 +02:00
#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;
2019-04-07 18:22:04 +02:00
void main() {
ivec3 coord = ivec3(gl_FragCoord.xy + u_info.offset, gl_Layer);
2019-04-07 18:22:04 +02:00
o_color = texelFetch(s_image, coord, 0);
}