yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
9f5a43a5
16.4.0
1#version 440 core 2 3struct VertexInfo { 4float position [ 3 ] ; 5float normal [ 3 ] ; 6} ; 7 8struct TriangleInfo { 9VertexInfo v [ 3 ] ; 10} ; 11 12buffer VertexCollection { 13TriangleInfo t [ 5 ] ; 14uint padding [ 10 ] ; 15} ; 16 17buffer MultipleArrays { 18TriangleInfo tri [ 5 ] ; 19VertexInfo vert [ 5 ] ; 20float f [ 5 ] ; 21} multiarray ; 22 23buffer ArrayedBind { 24float a ; 25float b ; 26} buffers [ 3 ] ; 27 28uniform UBO { 29VertexInfo verts [ 2 ] ; 30float flt [ 8 ] ; 31uvec4 unused ; 32float uniform_multi [ 4 ][ 3 ][ 2 ] ; 33} ubo ; 34 35uniform float uniform_multi [ 4 ][ 3 ][ 2 ] ; 36 37struct OutputStruct { 38float val ; 39vec3 a ; 40vec2 b [ 4 ] ; 41mat2x2 c ; 42} ; 43 44out OutputStruct outval ; 45out float outarr [ 3 ] ; 46 47void main () 48{ 49float f ; 50f += t [ 0 ] . v [ 0 ] . position [ 0 ] ; 51f += t [ gl_InstanceID ] . v [ gl_InstanceID ] . position [ gl_InstanceID ] ; 52f += t [ gl_InstanceID ] . v [ gl_InstanceID ] . normal [ gl_InstanceID ] ; 53f += multiarray . tri [ gl_InstanceID ] . v [ 0 ] . position [ 0 ] ; 54f += multiarray . vert [ gl_InstanceID ] . position [ 0 ] ; 55f += multiarray . f [ gl_InstanceID ] ; 56f += ubo . verts [ gl_InstanceID ] . position [ 0 ] ; 57f += ubo . flt [ gl_InstanceID ] ; 58f += ubo . uniform_multi [ 0 ][ 0 ][ 0 ] ; 59f += uniform_multi [ gl_InstanceID ][ gl_InstanceID ][ gl_InstanceID ] ; 60f += buffers [ gl_InstanceID ] . b ; 61TriangleInfo tlocal [ 5 ] = t ; 62outval . val = f ; 63outarr [ 2 ] = f ; 64}