Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.hull.void.tesc
1 // *** 
2 // void patchconstantfunction input and return
3 // ***
4
5 struct VS_OUT
6 {
7     float3 cpoint : CPOINT;
8 };
9
10 struct HS_CONSTANT_OUT
11 {
12     float edges[2] : SV_TessFactor;
13 };
14
15 struct HS_OUT
16 {
17     float3 cpoint : CPOINT;
18 };
19
20 [domain("tri")]
21 [partitioning("fractional_even")]
22 [outputtopology("triangle_ccw")]
23 [outputcontrolpoints(3)]
24 [patchconstantfunc("PCF")]
25 HS_OUT main(InputPatch<VS_OUT, 3> ip)
26 {
27     HS_OUT output;
28     output.cpoint = ip[0].cpoint;
29     return output;
30 }
31
32 void PCF()
33 {
34 }