fix the spelling in whole piglit
[piglit.git] / tests / spec / arb_explicit_attrib_location / 1.10 / compiler / layout-13.frag
blob9f1799347b3f069e9580f0386a56e42ca4aaae34
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.10
4 // require_extensions: GL_ARB_explicit_attrib_location
5 // [end config]
6 //
7 // Even though the specified locations overlap, the spec says that a *link*
8 // error is generated.  The changes to section 3.9.2 say:
9 //
10 //     "Output binding assignments will cause LinkProgram to fail:
12 //           * if the number of active outputs is greater than the value of
13 //             MAX_DRAW_BUFFERS;
15 //           * if the program has an active output assigned to a location
16 //             greater than or equal to the value of
17 //             MAX_DUAL_SOURCE_DRAW_BUFFERS and has an active output assigned
18 //             an index greater than or equal to one;
20 //           * if more than one varying out variable is bound to the same
21 //             number and index; or
23 //           * if the explicit binding assignments do not leave enough space
24 //             for the linker to automatically assign a location for a varying
25 //             out array, which requires multiple contiguous locations."
27 #version 110
28 #extension GL_ARB_explicit_attrib_location: require
29 layout(location = 0, index = 1) out vec4 color;
30 layout(location = 0, index = 1) out vec4 factor;
32 void main()
34         color = vec4(1.0);
35         factor = vec4(0.5);