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 6struct lunarStruct1 { 7int i ; 8float f ; 9} ; 10 11struct lunarStruct2 { 12int i ; 13float f ; 14lunarStruct1 s1_1 ; 15} ; 16 17struct lunarStruct3 { 18lunarStruct2 s2_1 ; 19int i ; 20float f ; 21lunarStruct1 s1_1 ; 22} ; 23 24 25uniform lunarStruct1 foo ; 26uniform lunarStruct2 foo2 ; 27uniform lunarStruct3 foo3 ; 28 29void main () 30{ 31lunarStruct2 locals2 ; 32 33if ( foo3 . s2_1 . i > 0 ) 34locals2 = foo3 . s2_1 ; 35else 36locals2 = foo2 ; 37 38gl_FragColor = locals2 . s1_1 . f * texture2D ( sampler , coord ) ; 39}