Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / spv.1.4.texture.frag
1 #version 450\r
2 \r
3 uniform  sampler2D       texSampler2D;\r
4 uniform isampler2D      itexSampler2D;\r
5 uniform usampler2D      utexSampler2D;\r
6 \r
7 in  vec2 t;\r
8 in  vec2 coords2D;\r
9 flat in ivec2 iCoords2D;\r
10 \r
11 out vec4 color;\r
12 \r
13 flat in int iLod;\r
14 \r
15 void main()\r
16 {\r
17     vec4  color = vec4(0.0, 0.0, 0.0, 0.0);\r
18 \r
19     color += texture( texSampler2D, coords2D);\r
20     color += texture(itexSampler2D, coords2D);\r
21     color += texture(utexSampler2D, coords2D);\r
22 \r
23     color += texelFetch( texSampler2D, iCoords2D, iLod);\r
24     color += texelFetch(itexSampler2D, iCoords2D, iLod);\r
25     color += texelFetch(utexSampler2D, iCoords2D, iLod);\r
26 }