steve-lunarg | ccb076a | 2017-04-05 11:03:02 -0600 | [diff] [blame] | 1 | // Test vec2 tessellation coordinate: the IO form should be a vec3, copied to a vec2 |
| 2 | // at the entry point boundary. |
| 3 | |
| 4 | struct ds_in_t |
| 5 | { |
| 6 | float4 pos : POSITION; |
| 7 | float3 norm : TEXCOORD0; |
| 8 | }; |
| 9 | |
| 10 | struct pcf_in_t |
| 11 | { |
| 12 | float flTessFactor [3] : SV_TessFactor; |
| 13 | float flInsideTessFactor : SV_InsideTessFactor; |
| 14 | }; |
| 15 | |
| 16 | struct gs_in_t |
| 17 | { |
| 18 | float4 pos : POSITION; |
| 19 | float3 norm : TEXCOORD0; |
| 20 | }; |
| 21 | |
| 22 | [domain ( "isoline" )] |
| 23 | gs_in_t main (const OutputPatch <ds_in_t, 2> i, float2 tesscoord : SV_DomainLocation, pcf_in_t pcf_data ) |
| 24 | { |
| 25 | gs_in_t o; |
| 26 | |
| 27 | o.pos = i[0].pos + tesscoord.x; |
| 28 | o.norm = i[0].norm + tesscoord.y; |
| 29 | |
| 30 | return o; |
| 31 | } |