SPIRV-Cross/reference/shaders/tese/load-array-of-array.tese
Hans-Kristian Arntzen a8d676f2e4 GLSL: Fix issue with array-of-array inputs in tess.
Only one dimension can be unsized and wrong dimension was used for
unrolling purposes.
2019-11-04 10:34:49 +01:00

17 lines
326 B
GLSL

#version 450
layout(quads, ccw, equal_spacing) in;
layout(location = 0) in vec4 vTexCoord[][1];
void main()
{
vec4 _17_unrolled[32][1];
for (int i = 0; i < int(32); i++)
{
_17_unrolled[i] = vTexCoord[i];
}
vec4 tmp[32][1] = _17_unrolled;
gl_Position = (tmp[0][0] + tmp[2][0]) + tmp[3][0];
}