yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6c292d3b
main
1#version 450 2 3uniform sampler2D samp2D ; 4in mediump vec2 coord ; 5 6in vec4 u , w ; 7out vec4 color ; 8 9struct s1 { 10int i ; 11float f ; 12} ; 13 14struct s2 { 15int i ; 16float f ; 17s1 s1_1 ; 18} ; 19 20layout ( std140 ) uniform ub1 { s2 foo2a ; } uName1 ; 21layout ( std430 ) buffer ub2 { s2 foo2b ; } uName2 ; 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 ( uName1 . foo2a == uName2 . foo2b ) 31v = texture ( samp2D , coord ) ; 32else 33v = texture ( samp2D , 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 50color = v ; 51}