glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-const-builtin-abs.shader_test
blob34a1ac93266dbf93d95924555a6cbc7c695bc326
1 [require]
2 GLSL >= 1.20
4 [vertex shader]
5 void main()
7         gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
10 [fragment shader]
11 void main()
13     const float x = abs(-0.5);
14     const float y = abs(0.0);
15     const float z = abs(0.5);
16     gl_FragColor = vec4(x, y, z, 1.0);
19 [test]
20 draw rect -1 -1 2 2
21 probe all rgb 0.5 0.0 0.5