| 1234567891011121314151617181920212223242526 |
- // RUN: %dxc -E main -T gs_6_0 %s | FileCheck %s
- // CHECK: InputPrimitive=patch2
- // CHECK: emitStream
- // CHECK: cutStream
- // CHECK: i32 24}
- struct GSOut {
- float2 uv : TEXCOORD0;
- float4 clr : COLOR;
- float4 pos : SV_Position;
- };
- cbuffer b : register(b0) {
- float2 invViewportSize;
- };
- // geometry shader that outputs 3 vertices from a point
- [maxvertexcount(3)]
- [instance(24)]
- void main(InputPatch<GSOut, 2>points, inout PointStream<GSOut> stream) {
- stream.Append(points[0]);
- stream.RestartStrip();
- }
|