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:
parent
05d12a9461
commit
879562b766
10 changed files with 25 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue