Add a new shader-versioning infrastructure capable of handling multiple profiles...
[platform/upstream/glslang.git] / Test / versionsErrors.frag
1 //\r
2 //Copyright (C) 2012 LunarG, Inc.\r
3 //All rights reserved.\r
4 //\r
5 //Redistribution and use in source and binary forms, with or without\r
6 //modification, are permitted provided that the following conditions\r
7 //are met:\r
8 //\r
9 //    Redistributions of source code must retain the above copyright\r
10 //    notice, this list of conditions and the following disclaimer.\r
11 //\r
12 //    Redistributions in binary form must reproduce the above\r
13 //    copyright notice, this list of conditions and the following\r
14 //    disclaimer in the documentation and/or other materials provided\r
15 //    with the distribution.\r
16 //\r
17 //    Neither the name of LunarG Inc. nor the names of its\r
18 //    contributors may be used to endorse or promote products derived\r
19 //    from this software without specific prior written permission.\r
20 //\r
21 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
22 //"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
23 //LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\r
24 //FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r
25 //COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\r
26 //INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
27 //BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
28 //LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r
29 //CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
30 //LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\r
31 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
32 //POSSIBILITY OF SUCH DAMAGE.\r
33 //\r
34 #version 110 es\r
35 \r
36 #extension GL_ARB_texture_rectangle : disable\r
37 \r
38 attribute vec3 color;\r
39 \r
40 uniform sampler2DRect foo;\r
41 \r
42 void main()\r
43 {\r
44     gl_FragColor = vec4(color, 142.0f);\r
45     discard;\r
46 }\r