diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-11-04 12:33:52 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-11-04 12:34:49 +0300 |
commit | a8d676f2e46d05d49694fefead42fbddd6179107 (patch) | |
tree | 2a30473fc2e115ec577668a145b6af7d39e3641e /shaders | |
parent | ab1564f3c9ee7f3a4a82b53512bc991a38f275c8 (diff) |
GLSL: Fix issue with array-of-array inputs in tess.
Only one dimension can be unsized and wrong dimension was used for
unrolling purposes.
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tese/load-array-of-array.tese | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shaders/tese/load-array-of-array.tese b/shaders/tese/load-array-of-array.tese new file mode 100644 index 00000000..7383f708 --- /dev/null +++ b/shaders/tese/load-array-of-array.tese @@ -0,0 +1,10 @@ +#version 450 +layout(ccw, quads) in; + +layout(location = 0) in vec4 vTexCoord[][1]; + +void main() +{ + vec4 tmp[gl_MaxPatchVertices][1] = vTexCoord; + gl_Position = tmp[0][0] + tmp[2][0] + tmp[3][0]; +} |