summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc34
1 files changed, 34 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc
new file mode 100644
index 00000000000..971d613bf78
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.hull.void.tesc
@@ -0,0 +1,34 @@
+// ***
+// void patchconstantfunction input and return
+// ***
+
+struct VS_OUT
+{
+ float3 cpoint : CPOINT;
+};
+
+struct HS_CONSTANT_OUT
+{
+ float edges[2] : SV_TessFactor;
+};
+
+struct HS_OUT
+{
+ float3 cpoint : CPOINT;
+};
+
+[domain("tri")]
+[partitioning("fractional_even")]
+[outputtopology("line")]
+[outputcontrolpoints(3)]
+[patchconstantfunc("PCF")]
+HS_OUT main(InputPatch<VS_OUT, 3> ip)
+{
+ HS_OUT output;
+ output.cpoint = ip[0].cpoint;
+ return output;
+}
+
+void PCF()
+{
+}