yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2f21fcce
vulkan-sdk-1.4.350.0
1#version 130 2uniform sampler2D sampler ; 3varying vec2 coord ; 4 5struct lunarStruct1 { 6int i ; 7float f [ 4 ] ; 8vec4 color [ 5 ] ; 9} ; 10 11struct lunarStruct2 { 12int i [ 5 ] ; 13float f ; 14lunarStruct1 s1_1 [ 7 ] ; 15} ; 16 17uniform lunarStruct1 foo ; 18uniform lunarStruct2 foo2 [ 5 ] ; 19 20void main () 21{ 22float scale = 0.0 ; 23 24if ( foo2 [ 3 ] . i [ 4 ] > 0 ) 25scale = foo2 [ 3 ] . s1_1 [ 2 ] . color [ 3 ] . x ; 26else 27scale = foo2 [ 3 ] . s1_1 [ 2 ] . f [ 3 ] ; 28 29gl_FragColor = scale * texture2D ( sampler , coord ) ; 30} 31