SPIRV-Cross/shaders/frag/sampler-ms.frag
Hans-Kristian Arntzen d5dc5f3f1c Fix issue with new glslang behavior for samplers as parameters.
Check case where storage class uniform is passed as function parameter.
2016-07-05 13:21:26 +02:00

17 lines
370 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(binding = 0) uniform mediump sampler2DMS uSampler;
layout(location = 0) out vec4 FragColor;
void main()
{
ivec2 coord = ivec2(gl_FragCoord.xy);
FragColor =
texelFetch(uSampler, coord, 0) +
texelFetch(uSampler, coord, 1) +
texelFetch(uSampler, coord, 2) +
texelFetch(uSampler, coord, 3);
}