Add option to unwrap I/O block aggregates in reflection
* We follow similar rules to uniform block exploding.
This commit is contained in:
parent
567396b6b4
commit
1905069857
10 changed files with 177 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue