summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/gh-34.hlsl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs/gh-34.hlsl b/tests/bugs/gh-34.hlsl
new file mode 100644
index 000000000..feaddb2ab
--- /dev/null
+++ b/tests/bugs/gh-34.hlsl
@@ -0,0 +1,16 @@
+//TEST:COMPARE_HLSL: -profile gs_5_0 -target dxbc-assembly -no-checking
+
+struct VS_OUT { float3 p : POSITION; };
+
+[maxvertexcount(3)]
+void main(InputPatch<VS_OUT, 3> input, inout TriangleStream<VS_OUT> outStream)
+{
+ VS_OUT output;
+ for (uint i = 0; i < 3; i += 1)
+ {
+ output = input[i];
+ outStream.Append(output);
+ }
+
+ outStream.RestartStrip();
+}