primitive.error.gs.hlsl 551 B

1234567891011121314151617
  1. // Run: %dxc -T gs_6_0 -E main
  2. struct GS_OUT
  3. {
  4. float4 position : SV_POSITION;
  5. float4 color : COLOR0;
  6. float2 uv : TEXCOORD0;
  7. };
  8. [maxvertexcount(3)]
  9. void main(triangle in uint i[3] : TriangleVertexID,
  10. line in uint j[2] : LineVertexID,
  11. inout PointStream<GS_OUT> out1,
  12. inout LineStream<GS_OUT> out2) {}
  13. // CHECK: error: only one input primitive type can be specified in the geometry shader
  14. // CHECK: error: only one output primitive type can be specified in the geometry shader