commit | 570e04d8701e37ce3a4ee485afd0f0c4299ff23d | [log] [tgz] |
---|---|---|
author | Jamie Madill <jmadill@transgaming.com> | Fri Jun 21 09:15:33 2013 -0400 |
committer | Shannon Woods <shannonwoods@chromium.org> | Fri Jul 19 18:05:16 2013 -0400 |
tree | dc2fe66911330df2a5795a89cfecb1751adfff24 | |
parent | e4075c9c8be9c7b7616dcb60d6453e40e5f87d4a [diff] |
Add support for passing nested structs in standard layout by value. We add support for this by using global scratch values as storage for the structs in uniform blocks. Any structs in std140 layouts that are referenced by value are initialized in the shader scope, without any packing, so the type of the structs are equivalent with what a GLSL program would expect. TRAC #23327 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Authored-by: Jamie Madill