yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
8a1a4a7a
16.5.0
1#version 420 core 2 3// testing input arrays without a gl_in[] block redeclaration, see 400.geom for with 4 5int i ; 6 7void foo () 8{ 9gl_in . length () ; // ERROR 10gl_in [ 1 ] . gl_Position ; 11gl_in [ i ] . gl_Position ; // ERROR 12} 13 14layout ( triangles ) in ; 15 16in vec4 color3 [ 3 ] ; 17 18void foo3 () 19{ 20gl_in . length () ; 21gl_in [ i ] . gl_Position ; 22color3 . length () ; 23} 24 25uniform sampler2D s2D ; 26in vec2 coord [] ; 27uniform vec4 v4 ; 28 29void foo4 () 30{ 31const ivec2 offsets [ 5 ] = 32{ 33ivec2 ( 0 , 1 ) , 34ivec2 ( 1 , - 2 ) , 35ivec2 ( 0 , 3 ) , 36ivec2 ( - 3 , 0 ) , 37ivec2 ( 2 , 1 ) 38} ; 39 40vec4 v = textureGatherOffset ( s2D , coord [ 0 ] , offsets [ i ] . xy ) ; 41 42offsets [ i ] . xy = ivec2 ( 3 ) ; // ERROR 43v4 . x = 3.2 ; // ERROR 44v4 . xy ; // should have non-uniform type 45} 46 47out gl_PerVertex { 48float gl_PointSize [ 1 ] ; // ERROR, adding array 49float gl_ClipDistance ; // ERROR, removing array 50} ; 51 52float foo5 () 53{ 54return i ; // implicit conversion of return type 55}