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