SimpleGS9.hlsl 446 B

1234567891011121314151617181920212223
  1. // RUN: %dxc -E main -T gs_6_0 %s | FileCheck %s
  2. // CHECK: input parameter conflicts with geometry specifier of previous input parameters
  3. struct Out
  4. {
  5. float4 pos : SV_Position;
  6. float4 a[2] : A;
  7. };
  8. struct Empty{};
  9. int i;
  10. [maxvertexcount(3)]
  11. void main(line Empty e[2], lineadj Empty e2[4], inout PointStream<Out> OutputStream0)
  12. {
  13. Out output = (Out)0;
  14. output.a[i] = 3;
  15. OutputStream0.Append(output);
  16. OutputStream0.RestartStrip();
  17. }