yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
69d0c1ac
main
1#version 430 2 3// Verify that matching by block name is working, not 4// instance name, which was at one point failing on this 5// test due to E.g anon@1 being different blocks for 6// different compilation units 7 8layout (std140 )uniform Block 9{ 10mat4 uProj ; 11mat4 uWorld ; 12}; 13 14out Vertex 15{ 16vec4 v1 ; 17vec4 v2 ; 18}; 19 20layout (std140 )uniform ColorBlock 21{ 22vec4 color1 ; 23vec4 color2 ; 24}; 25 26vec4 getWorld (); 27vec4 getColor2 (); 28 29out vec4 oColor ; 30 31void 32main () 33{ 34oColor = color1 * getColor2 (); 35v1 = color1 ; 36 37gl_Position = uProj * getWorld (); 38}