diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-20 09:54:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-20 09:54:38 -0700 |
| commit | 40617db15d87ece6e7cc88da23f747f8f827c69a (patch) | |
| tree | b53ae92e80a1e447d738129e2015f8803da6bea4 /tests | |
| parent | 5b85b51686bafe969c4d1c75b59aa17bc014367a (diff) | |
| parent | c163c33664af1a68613ecbf0c4e747ad3ee3dbb1 (diff) | |
Merge pull request #35 from tfoleyNV/input-patch-type-fix
Fix types for `InputPatch` and `OutputPatch`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs/gh-34.hlsl | 16 |
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(); +} |
