Fix treatment of array input/output variables in reflection

* Non-block arrays should not be ignored when exploding types.
* When not exploding, set the array size correctly on each item.
This commit is contained in:
baldurk
2019-02-11 16:39:12 +00:00
parent 05d12a9461
commit 879562b766
10 changed files with 25 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ struct OutputStruct {
};
out OutputStruct outval;
out float outarr[3];
void main()
{
@@ -48,4 +49,5 @@ void main()
f += ubo.flt[gl_InstanceID];
TriangleInfo tlocal[5] = t;
outval.val = f;
outarr[2] = f;
}