Include array index in reflected uniform names more consistently
authorbaldurk <baldurk@baldurk.org>
Tue, 29 Jan 2019 12:12:59 +0000 (12:12 +0000)
committerbaldurk <baldurk@baldurk.org>
Mon, 4 Feb 2019 11:21:09 +0000 (11:21 +0000)
commit15c37f79a909260d4b22b57fc04223a40565b710
treecd23fd9c9719eac21bd31b2fd2ccd8ad1b03f416
parent6d477858251f76852210810eedb1dd71a8089c54
Include array index in reflected uniform names more consistently

* This comes from the resolution of issues 4, 5 & 6 in
  ARB_program_interface_query, stating that uniform buffers should have their
  members expanded out as normal and arrays should have elements added.
* If a buffer block has a large array e.g. [10000] we don't want to iterate over
  every array element. Instead we should only expand out the first [0] element,
  then expand as normal from there.
* The array name should still be appended with [0] to indicate that it's an
  array.
StandAlone/StandAlone.cpp
Test/baseResults/reflection.options.vert.out [new file with mode: 0644]
Test/baseResults/reflection.vert.out
Test/reflection.options.vert [new file with mode: 0644]
Test/reflection.vert
Test/runtests
glslang/MachineIndependent/reflection.cpp
glslang/Public/ShaderLang.h