//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly -entry main -stage geometry // Make sure InputPoints always appears before OutputVertices and OutputTriangleStrip, // otherwise, the shader won't work correctly. // CHECK: OpExecutionMode {{.*}} InputPoints // CHECK: OpExecutionMode {{.*}} OutputVertices 4 // CHECK: OpExecutionMode {{.*}} OutputTriangleStrip [maxvertexcount(4)] void main( point float4 input[1], inout TriangleStream OutputStream ) { OutputStream.Append(float4(0)); OutputStream.Append(float4(1)); OutputStream.Append(float4(2)); OutputStream.Append(float4(3)); }