yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
97068d8b
16.4.0
1#version 400 2 3flat in ivec4 uiv4 ; 4in vec4 uv4 ; 5bool ub ; 6bool uba ; 7bvec4 ub41 , ub42 ; 8in float uf ; 9flat in int ui ; 10 11out float of1 ; 12out vec4 of4 ; 13 14bool foo () { ++ of1 ; return of1 > 10.0 ; } 15 16void main () 17{ 18of1 = 0.0 ; 19of4 = vec4 ( 0.0 ) ; 20 21if ( ub || ui > 2 ) // not worth short circuiting 22++ of1 ; 23 24if ( ub && ! uba ) // not worth short circuiting 25++ of1 ; 26 27if ( ub || foo ()) // must short circuit 28++ of1 ; 29 30if ( ub && foo ()) // must short circuit 31++ of1 ; 32 33if ( foo () || ub ) // not worth short circuiting 34++ of1 ; 35 36if ( foo () && ub ) // not worth short circuiting 37++ of1 ; 38 39if ( ub || ++ of1 > 1.0 ) // must short circuit 40++ of4 ; 41 42if ( ++ of1 > 1.0 || ub ) // not worth short circuiting 43++ of4 ; 44 45if ( ub || sin ( uf ) * 4.0 > of1 ) // worth short circuiting 46++ of1 ; 47 48if ( ub && sin ( uf ) * 4.0 > of1 ) // worth short circuiting 49++ of1 ; 50}