yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
69d0c1ac
main
1#version 430 2 3// OK: different instance names is allowed in other unit 4layout (std140 ,binding = 1 )uniform ColorBlock 5{ 6vec4 color1 ; 7bool b ; 8vec4 color2 ; 9vec4 color3 ; 10}uColor ; 11 12// OK: different instance names is allowed in other unit 13layout (std430 ,binding = 1 )buffer BufferBlock 14{ 15mat4 p ; 16}uBuffer ; 17 18// OK: different instance names is allowed in other unit 19layout (std140 ,binding = 0 )uniform MatrixBlock 20{ 21mat4 uProj ; 22mat4 uWorld ; 23}uMatrix ; 24 25// OK, it's allowed for input/output interfaces to 26// be anonymous is one unit and not in another 27out Vertex 28{ 29vec4 v1 ; 30vec4 v2 ; 31}; 32 33 34in vec4 P ; 35 36vec4 getColor2 () 37{ 38return uColor .color2 ; 39} 40 41vec4 getWorld () 42{ 43v1 = vec4 (1 ); 44return uMatrix .uWorld * P ; 45} 46