diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.2.tesc')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.2.tesc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.2.tesc b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.2.tesc new file mode 100644 index 00000000000..3c0afcc5d66 --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.2.tesc @@ -0,0 +1,39 @@ +// *** +// invocation ID coming from synthesized variable +// *** + +struct VS_OUT +{ + float3 cpoint : CPOINT; +}; + +struct HS_CONSTANT_OUT +{ + float edges[2] : SV_TessFactor; +}; + +struct HS_OUT +{ + float3 cpoint : CPOINT; +}; + +[domain("isoline")] +[partitioning("integer")] +[outputtopology("line")] +[outputcontrolpoints(4)] +[patchconstantfunc("PCF")] +HS_OUT main(InputPatch<VS_OUT, 4> ip) +{ + HS_OUT output; + output.cpoint = ip[0].cpoint; + return output; +} + +HS_CONSTANT_OUT PCF(uint pid : SV_PrimitiveId, float4 pos : SV_Position) +{ + HS_CONSTANT_OUT output; + + output.edges[0] = 2.0f; + output.edges[1] = 8.0f; + return output; +} |