Fix type recursion with EOpIndexIndirect dereferences
* This primarily affects arrays-of-arrays but it can also affect arrays-of- structs if there are no further dereferences.
This commit is contained in:
parent
5432f0dd8f
commit
141bc5a54f
5 changed files with 49 additions and 6 deletions
|
|
@ -24,8 +24,11 @@ uniform UBO {
|
|||
VertexInfo verts[2];
|
||||
float flt[8];
|
||||
uvec4 unused;
|
||||
float uniform_multi[4][3][2];
|
||||
} ubo;
|
||||
|
||||
uniform float uniform_multi[4][3][2];
|
||||
|
||||
struct OutputStruct {
|
||||
float val;
|
||||
vec3 a;
|
||||
|
|
@ -47,6 +50,8 @@ void main()
|
|||
f += multiarray.f[gl_InstanceID];
|
||||
f += ubo.verts[gl_InstanceID].position[0];
|
||||
f += ubo.flt[gl_InstanceID];
|
||||
f += ubo.uniform_multi[0][0][0];
|
||||
f += uniform_multi[gl_InstanceID][gl_InstanceID][gl_InstanceID];
|
||||
TriangleInfo tlocal[5] = t;
|
||||
outval.val = f;
|
||||
outarr[2] = f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue