glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-vs-position-outval.shader_test
blobb2e507a512614683c140c6346f4c2d80f8c2cf1b
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void set_position(out vec4 pos)
7         pos = gl_Vertex;
10 void main()
12         set_position(gl_Position);
15 [fragment shader]
16 void main()
18         gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
21 [test]
22 draw rect -1 -1 2 2
23 probe all rgba 0.0 1.0 0.0 0.0