blob: be6eee878ac478947b4307efb0cb04d343a9c67a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//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<float4> OutputStream )
{
OutputStream.Append(float4(0));
OutputStream.Append(float4(1));
OutputStream.Append(float4(2));
OutputStream.Append(float4(3));
}
|