Add option to unwrap I/O block aggregates in reflection
* We follow similar rules to uniform block exploding.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user