yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
6c292d3b
main
1#version 400 2 3uniform sampler2D samp2D ; 4in vec2 coord ; 5in vec4 color ; 6 7struct s1 { 8int i ; 9float f ; 10}; 11 12struct s2 { 13int i ; 14float f ; 15s1 s1_1 ; 16vec4 bleh ; 17}; 18 19struct s3 { 20s2 s2_1 ; 21int i ; 22float f ; 23s1 s1_1 ; 24}; 25 26 27flat in s1 foo ; 28flat in s2 foo2 ; 29flat in s3 foo3 ; 30 31 32flat in int condition ; 33 34void main () 35{ 36s2 locals2 ; 37s3 locals3 ; 38float localFArray [16 ]; 39int localIArray [8 ]; 40 41locals2 = foo3 .s2_1 ; 42 43if (foo3 .s2_1 .i > 0 ) { 44locals2 .s1_1 .f = 1.0 ; 45localFArray [4 ]= coord .x ; 46localIArray [2 ]= foo3 .s2_1 .i ; 47 }else { 48locals2 .s1_1 .f = coord .x ; 49localFArray [4 ]= 1.0 ; 50localIArray [2 ]= 0 ; 51 } 52 53if (localIArray [2 ]== 0 ) 54++ localFArray [4 ]; 55 56float localArray [16 ]; 57int x = 5 ; 58localArray [x ]= coord .x ; 59 60float [ 16 ] a; 61 62for ( int i = 0 ; i < 16 ; i ++ ) 63a[i] = 0.0 ; 6465 if (condition == 1 ) 66a = localArray; 6768 locals2. bleh = color; 69locals2. bleh . z = coord. y ; 70 71gl_FragColor = locals2. bleh * (localFArray[ 4 ] + locals2. s1_1 . f + localArray[x] + a[x]) * texture(samp2D, coord ); 72}