Tizen 2.1 base
[sdk/emulator/qemu.git] / gl / mesa / src / gallium / state_trackers / d3d1x / progs / d3d10tri / d3d10tri.hlsl
1 /**************************************************************************\r
2  *\r
3  * Copyright 2010 Luca Barbieri\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining\r
6  * a copy of this software and associated documentation files (the\r
7  * "Software"), to deal in the Software without restriction, including\r
8  * without limitation the rights to use, copy, modify, merge, publish,\r
9  * distribute, sublicense, and/or sell copies of the Software, and to\r
10  * permit persons to whom the Software is furnished to do so, subject to\r
11  * the following conditions:\r
12  *\r
13  * The above copyright notice and this permission notice (including the\r
14  * next paragraph) shall be included in all copies or substantial\r
15  * portions of the Software.\r
16  *\r
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
18  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
20  * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE\r
21  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
22  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
23  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
24  *\r
25  **************************************************************************/\r
26 \r
27 struct IA2VS\r
28 {\r
29         float4 position : POSITION;\r
30         float4 color : COLOR;\r
31 };\r
32 \r
33 struct VS2PS\r
34 {\r
35         float4 position : SV_POSITION;\r
36         float4 color : COLOR;\r
37 };\r
38 \r
39 VS2PS vs(IA2VS input)\r
40 {\r
41         VS2PS result;\r
42         result.position = input.position;\r
43         result.color = input.color;\r
44         return result;\r
45 }\r
46 \r
47 float4 ps(VS2PS input) : SV_TARGET\r
48 {\r
49         return input.color;\r
50 }\r