glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-fs-i2b.shader_test
blob7caadf5d2a75ecd89e8ecdd6c643ad913e141266
1 [require]
2 GLSL >= 1.20
4 [vertex shader]
5 void main()
7         gl_Position = gl_Vertex;
10 [fragment shader]
11 #version 120
13 uniform int arg0;
14 uniform int arg1;
16 void main()
18         bool t = bool(arg0);
19         bool f = bool(arg1);
21         gl_FragColor = vec4(1.0 - float(t), float(t) / 2.0, float(f), 1.0 - float(f));
24 [test]
25 uniform int arg0 2
26 uniform int arg1 0
27 draw rect -1 -1 2 2
28 probe all rgba 0.0 0.5 0.0 1.0