yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2ac71dfb
16.3.0
1#version 450 2 3layout ( binding = 0 , std140 ) uniform Uniform 4{ 5bvec4 b4 ; 6} ; 7 8layout ( binding = 1 , std430 ) buffer Buffer 9{ 10bvec2 b2 ; 11} ; 12 13void foo ( bvec4 paramb4 , out bvec2 paramb2 ) 14{ 15bool b1 = paramb4 . z ; 16paramb2 = bvec2 ( b1 ) ; 17} 18 19layout ( location = 0 ) out vec4 fragColor ; 20 21void main () 22{ 23b2 = bvec2 ( 0.0 ) ; 24if ( b4 . z ) 25b2 = bvec2 ( b4 . x ) ; 26if ( b2 . x ) 27foo ( b4 , b2 ) ; 28 29fragColor = vec4 ( b4 . x && b4 . y ) ; 30fragColor -= vec4 ( b4 . x || b4 . y ) ; 31}