yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
75e057f9
16.6.0
1struct S { 2float4 pos : SV_Position ; 3float2 clip [ 2 ] : SV_ClipDistance0 ; 4} ; 5 6[ maxvertexcount ( 3 )] 7void main ( triangle in float4 pos [ 3 ] : SV_Position , 8triangle in uint VertexID [ 3 ] : VertexID , 9inout LineStream < S > OutputStream , 10triangle in float2 clip [ 3 ][ 2 ] : SV_ClipDistance ) // externally: an array 3 of array 4 of float. 11{ 12S s ; 13 14s . pos = pos [ 0 ] ; 15s . clip [ 0 ] = clip [ 0 ][ 0 ] ; 16s . clip [ 1 ] = clip [ 0 ][ 1 ] ; 17 18OutputStream . Append ( s ) ; 19}