yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2f21fcce
main
1#version 130 2 3uniform sampler2D sampler ; 4varying mediump vec2 coord ; 5 6varying vec4 u ,w ; 7 8struct s1 { 9int i ; 10float f ; 11}; 12 13struct s2 { 14int i ; 15float f ; 16s1 s1_1 ; 17}; 18 19uniform s1 foo1 ; 20uniform s2 foo2a ; 21uniform s2 foo2b ; 22 23void main () 24{ 25vec4 v ; 26s1 a [3 ],b [3 ]; 27a = s1 [3 ](s1 (int (u .x ),u .y ),s1 (int (u .z ),u .w ),s1 (14 ,14.0 )); 28b = s1 [3 ](s1 (17 ,17.0 ),s1 (int (w .x ),w .y ),s1 (int (w .z ),w .w )); 29 30if (foo2a == foo2b ) 31v = texture2D (sampler ,coord ); 32else 33v = texture2D (sampler ,2.0 * coord ); 34 35if (u == v ) 36v *=3.0 ; 37 38if (u != v ) 39v *=4.0 ; 40 41if (coord == v .yw ) 42v *=5.0 ; 43 44if (a == b ) 45v *=6.0 ; 46 47if (a != b ) 48v *=7.0 ; 49 50gl_FragColor = v ; 51}