This allows data to be set for arbitrary array sized attributes in shader runner.
For example to set mat2x3[2]: attname[0]/mat2x3/3/1 attname[0]/mat2x3/3/2 attname[1]/mat2x3/3/1 attname[1]/mat2x3/3/2
The syntax has been extended so the recommended type to specify in the [vertex data] header line is the GLSL corresponding one, not just "float", "double", "int" or "uint".
In any case, the extended syntax is backward compatible so it is still possible to specify a vec3 attribute like: attname/float/3
In addition to the now recommended format: attname/vec3/3
v2: Added more verbose comments and documentation as requested by Alejandro Piñeiro.
290650c util: Add array_index support to [vertex data] (v2)
tests/util/piglit-vbo.cpp | 167 ++++++++++++++++++++++++++++++++++++---------
1 file changed, 133 insertions(+), 34 deletions(-)
Upstream: cgit.freedesktop.org