Re: [Mesa-dev] [PACH v2] glsl: SSBO unsized array declarations, if present, must be declared last

2016-10-17 Thread Iago Toral
On Sun, 2016-10-16 at 17:00 +1100, Timothy Arceri wrote: > On Fri, 2016-10-14 at 14:30 +0200, Iago Toral Quiroga wrote: > > > > From the ARB_shader_storage_buffer_object spec: > > > > "In a shader storage block, the last member may be declared without > > an explicit > >  size.  In this case, the

Re: [Mesa-dev] [PACH v2] glsl: SSBO unsized array declarations, if present, must be declared last

2016-10-15 Thread Timothy Arceri
On Fri, 2016-10-14 at 14:30 +0200, Iago Toral Quiroga wrote: > From the ARB_shader_storage_buffer_object spec: > > "In a shader storage block, the last member may be declared without > an explicit >  size.  In this case, the effective array size is inferred at run- > time from >  the size of the d

[Mesa-dev] [PACH v2] glsl: SSBO unsized array declarations, if present, must be declared last

2016-10-14 Thread Iago Toral Quiroga
From the ARB_shader_storage_buffer_object spec: "In a shader storage block, the last member may be declared without an explicit size. In this case, the effective array size is inferred at run-time from the size of the data store backing the interface block. Such unsized arrays may be indexed