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