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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user