yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
ae8af5d3
main
1float4 a [4 ]; 2 3struct { 4float4 m [7 ]; 5}s [11 ]; 6 7static float4 C = float4 (1 ,2 ,3 ,4 ); 8float4 a1 [1 ]= {float4 (1 ,2 ,3 ,4 ) }; 9float4 a2 [2 ]= {float4 (1 ,2 ,3 ,4 ),float4 (5 ,2 ,3 ,4 ), }; 10const float4 c1 [1 ]= {float4 (1 ,2 ,3 ,4 ) }; 11static const float4 c2 [2 ]= {C ,float4 (1 ,2 ,3 ,4 ), }; 12 13float4 PixelShaderFunction (int i :sem1 ,float4 input [3 ] :sem2 ) :SV_TARGET0 14{ 15float4 b [10 ]= {C ,C ,C ,C ,C ,C ,C ,C ,C ,C }; 16float4 tmp = C + a1 [0 ]+ c1 [0 ]+ a2 [i ]+ c2 [i ]; 17return a [1 ]+ a [i ]+ input [2 ]+ input [i ]+ b [5 ]+ b [i ]+ s [i ].m [i ]+ tmp ; 18}