Update reflection offset consistently for structure members
authorbaldurk <baldurk@baldurk.org>
Tue, 29 Jan 2019 13:52:33 +0000 (13:52 +0000)
committerbaldurk <baldurk@baldurk.org>
Tue, 29 Jan 2019 17:00:53 +0000 (17:00 +0000)
commit90995f5daed9d9f14e6f43a634b4489f6934fe1d
tree74325e502f66ac6ccd59f83779753d5630fdf6ae
parent7e500c7b360e88bb66e6bb82a487ea7c35e6d5c8
Update reflection offset consistently for structure members

* Previously the offset was only updated with EOpIndexDirectStruct, but we also
  need to update it for the other index types into arrays, and when expanding an
  aggregate reached after dereferencing.
Test/baseResults/hlsl.reflection.vert.out
Test/baseResults/reflection.vert.out
Test/reflection.vert
glslang/MachineIndependent/reflection.cpp