1 // Test tesselation factor output as PCF arg
5 float4 f4Position : SV_Position;
6 float3 f3Color : COLOR;
9 struct HS_CONSTANT_DATA_OUTPUT
11 float Edges[4] : SV_TessFactor;
14 HS_CONSTANT_DATA_OUTPUT ConstantHS(InputPatch<VSOutput, 1> p,
15 uint BlockID : SV_PrimitiveID,
16 out float Inside[2] : SV_InsideTessFactor)
18 HS_CONSTANT_DATA_OUTPUT Factors;
19 Factors.Edges[0] = 2.5;
20 Factors.Edges[1] = 4.25;
21 Factors.Edges[2] = 5.75;
22 Factors.Edges[3] = 7.5;
32 float4 Position : POS;
37 [partitioning("fractional_even")]
38 [outputtopology("triangle_ccw")]
39 [outputcontrolpoints(1)]
40 [patchconstantfunc("ConstantHS")]
41 HSOutput main(InputPatch<VSOutput, 1> inputPatch, uint uCPID : SV_OutputControlPointID)
44 Out.Position = inputPatch[uCPID].f4Position;
45 Out.Color = inputPatch[uCPID].f3Color;