blob: c96ecb4312f36c8c00a1097d56fed94d7c1328f1 [file] [log] [blame]
steve-lunarg858c9282017-01-07 08:54:10 -07001// ***
2// void patchconstantfunction input and return
3// ***
4
5struct VS_OUT
6{
7 float3 cpoint : CPOINT;
8};
9
10struct HS_CONSTANT_OUT
11{
12 float edges[2] : SV_TessFactor;
13};
14
15struct HS_OUT
16{
17 float3 cpoint : CPOINT;
18};
19
20[domain("tri")]
21[partitioning("fractional_even")]
John Kessenich4f54c0c2017-06-26 19:56:41 -060022[outputtopology("triangle_ccw")]
steve-lunarg858c9282017-01-07 08:54:10 -070023[outputcontrolpoints(3)]
24[patchconstantfunc("PCF")]
25HS_OUT main(InputPatch<VS_OUT, 3> ip)
26{
27 HS_OUT output;
28 output.cpoint = ip[0].cpoint;
29 return output;
30}
31
32void PCF()
33{
34}