yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
7c7fbd572
master
1//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly -entry main -stage geometry 2 3// Make sure InputPoints always appears before OutputVertices and OutputTriangleStrip, 4// otherwise, the shader won't work correctly. 5 6// CHECK: OpExecutionMode {{.*}} InputPoints 7// CHECK: OpExecutionMode {{.*}} OutputVertices 4 8// CHECK: OpExecutionMode {{.*}} OutputTriangleStrip 9 10[maxvertexcount(4)] 11void main( point float4 input[1], inout TriangleStream<float4> OutputStream ) 12{ 13 OutputStream.Append(float4(0)); 14 OutputStream.Append(float4(1)); 15 OutputStream.Append(float4(2)); 16 OutputStream.Append(float4(3)); 17}