steve-lunarg e0b9debda2 Flatten uniform arrays
This checkin adds a --flatten-uniform-arrays option which can break
uniform arrays of samplers, textures, or UBOs up into individual
scalars named (e.g) myarray[0], myarray[1], etc.  These appear as
individual linkage objects.

Code notes:

- shouldFlatten internally calls shouldFlattenIO, and shouldFlattenUniform,
  but is the only flattening query directly called.

- flattenVariable will handle structs or arrays (but not yet arrayed structs;
  this is tested an an error is generated).

- There's some error checking around unhandled situations.  E.g, flattening
  uniform arrays with initializer lists is not implemented.

- This piggybacks on as much of the existing mechanism for struct flattening
  as it can.  E.g, it uses the same flattenMap, and the same
  flattenAccess() method.

- handleAssign() has been generalized to cope with either structs or arrays.

- Extended test infrastructure to test flattening ability.
2016-09-22 08:47:48 -06:00
..
2016-09-22 08:47:48 -06:00
2016-03-03 12:12:07 -05:00
2016-07-19 15:13:47 -06:00
2014-04-14 16:14:30 +00:00
2015-06-26 10:48:26 -06:00
2013-03-04 23:50:08 +00:00
2015-06-26 10:48:26 -06:00
2016-09-22 08:47:48 -06:00
2016-06-19 11:50:34 -06:00
2016-08-25 08:48:54 -06:00
2013-11-12 03:31:24 +00:00
2013-11-12 03:31:24 +00:00
2013-02-08 18:56:56 +00:00