yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
ea69a298
vulkan-sdk-1.4.363.0
1#version 310 es 2 3precision mediump float ; 4precision highp int ; 5 6int c , d ; 7layout ( location = 0 ) in highp float x ; 8layout ( location = 1 ) in vec4 bigColor ; 9layout ( location = 2 ) in vec4 BaseColor ; 10layout ( location = 3 ) in float f ; 11 12layout ( location = 4 ) flat in int Count ; 13layout ( location = 5 ) flat in uvec4 v4 ; 14 15layout ( location = 0 ) out vec4 outColor ; 16 17void main () 18{ 19float f ; 20int a [ 2 ] ; 21 22switch ( c ) 23{ 24} 25 26switch ( c ) { // a no-error normal switch 27case 1 : 28f = sin ( x ) ; 29break ; 30case 2 : 31switch ( d ) { 32case 1 : 33f = x * x * x ; 34break ; 35case 2 : 36f = x * x ; 37break ; 38} 39break ; 40default : 41f = tan ( x ) ; 42} 43 44vec4 color = BaseColor ; 45 46for ( int i = 0 ; i < Count ; ++ i ) { 47color += bigColor ; 48} 49 50outColor = color ; 51 52float sum = 0.0 ; 53for ( int i = 0 ; i < 4 ; ++ i ) 54sum += float ( v4 [ i ]) ; 55 56vec4 tv4 ; 57 58for ( int i = 0 ; i < 4 ; ++ i ) 59tv4 [ i ] = float ( v4 [ i ] * 4u ) ; 60 61outColor += vec4 ( sum ) + tv4 ; 62 63vec4 r ; 64r . xyz = BaseColor . xyz ; 65 66for ( int i = 0 ; i < Count ; ++ i ) 67r . w = f ; 68 69outColor . xyz += r . xyz ; 70 71for ( int i = 0 ; i < 16 ; i += 4 ) 72outColor *= f ; 73 74int i = 0 ; 75int A , B , C , D ; 76while ( i < 10 ) { 77A = 1 ; 78if ( i % 2 == 0 ) { 79B = 2 ; 80continue ; 81C = 2 ; 82} 83if ( i % 5 == 0 ) { 84B = 2 ; 85break ; 86C = 2 ; 87} 88i ++ ; 89} 90D = 3 ; 91}