SimpleGS3.hlsl 476 B

12345678910111213141516171819202122232425
  1. // RUN: %dxc -E main -T gs_6_0 %s | FileCheck %s
  2. // CHECK: emitStream
  3. // CHECK: cutStream
  4. // CHECK: i32 24}
  5. struct GSOut {
  6. float2 uv : TEXCOORD0;
  7. float4 clr : COLOR;
  8. float4 pos : SV_Position;
  9. };
  10. cbuffer b : register(b0) {
  11. float2 invViewportSize;
  12. };
  13. // geometry shader that outputs 3 vertices from a point
  14. [maxvertexcount(3)]
  15. [instance(24)]
  16. void main(point GSOut points[1], inout PointStream<GSOut> stream) {
  17. stream.Append(points[0]);
  18. stream.RestartStrip();
  19. }