glsl: add helper for calculating offsets for struct members
authorTimothy <t_arceri@yahoo.com.au>
Fri, 11 Sep 2015 21:33:27 +0000 (07:33 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 17 Sep 2015 01:28:27 +0000 (11:28 +1000)
commit0ad44ce3735aa39391ab866c6a692eb76115b8c1
treead699726e070c46cb151cedce60f5aaebd4ca036
parent12af915e27e4f10bc4c29f1cc8119b28ba27d874
glsl: add helper for calculating offsets for struct members

V2: update comments

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h