glslang/StandAlone
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
..
CMakeLists.txt WIP: SPV Remapper: add remapper test framework 2016-08-25 10:46:51 -06:00
ResourceLimits.cpp Disable C4996 (secure CRT) recommendation on Windows for strtok(). 2016-08-26 14:43:14 -04:00
ResourceLimits.h Test compiling shaders with given resource limits using GTest. 2016-05-19 14:18:21 -04:00
spirv-remap.cpp Fix compilation issues with MSVC 2010 2016-02-23 22:17:38 +01:00
StandAlone.cpp Flatten uniform arrays 2016-09-22 08:47:48 -06:00
Worklist.h Add an osinclude.h below each OS directory, redirects by platform macro 2015-11-16 18:05:18 +01:00