Add option to unwrap I/O block aggregates in reflection

* We follow similar rules to uniform block exploding.
This commit is contained in:
baldurk
2019-02-11 11:50:24 +00:00
parent 567396b6b4
commit 1905069857
10 changed files with 177 additions and 45 deletions

View File

@@ -26,7 +26,14 @@ uniform UBO {
uvec4 unused;
} ubo;
out float outval;
struct OutputStruct {
float val;
vec3 a;
vec2 b[4];
mat2x2 c;
};
out OutputStruct outval;
void main()
{
@@ -40,5 +47,5 @@ void main()
f += ubo.verts[gl_InstanceID].position[0];
f += ubo.flt[gl_InstanceID];
TriangleInfo tlocal[5] = t;
outval = f;
outval.val = f;
}