yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
31ab84a5
main
1void f0 () { 2 [unroll ]do {}while (false); 3} 4 5void f1 () { 6 [unroll ]do {;}while (false); 7} 8 9float f2 (float input ) { 10do {return (float4 )input ; }while (input > 2.0 ); 11} 12 13void f3 (float input ) { 14do ++ input ;while (input < 10.0 ); 15} 16 17void f4 (float input ) { 18do while (++ input < 10.0 );while (++ input < 10.0 );// nest while inside do-while 19} 20 21float4 PixelShaderFunction (float input ) :COLOR0 22{ 23f0 (); 24f1 (); 25f2 (input ); 26f3 (input ); 27f4 (input ); 28return (float4 )input ; 29}