glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-const-builtin-floor.shader_test
blobaf77322057efb44ddacecd8a2d013f4dcdd0210f
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 = floor(-0.5);
14     const float y = floor(0.0);
15     const float z = floor(0.5);
16     gl_FragColor = vec4(x + 1.7, y, z, 1.0);
19 [test]
20 draw rect -1 -1 2 2
21 probe all rgb 0.7 0.0 0.0