summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.10/execution/loops/glsl-fs-loop-vec4-counter.shader_test
blob: edb2a80cdd4462ef53f3d879a96e92789a94765b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[require]
GLSL >= 1.10

[vertex shader passthrough]

[fragment shader]
vec4 color;
void main()
{
   color = vec4(0.0, 0.0, 0.0, 0.0);
   while (color.y < 0.5)
   {
      color.y = color.y + 1.0;
   }
   gl_FragColor = color;
}

[test]
draw rect -1 -1 2 2
probe rgba 1 1 0.0 1.0 0.0 0.0