glsl: Add std430 related member functions to glsl_type class
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Mon, 31 Aug 2015 05:44:47 +0000 (07:44 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:21 +0000 (08:39 +0200)
commit35476c2bae5d59adf5fcfce8c83958ed076264e5
treebcf726ca424160207dfc7e027d6d10450c3f345d
parenta40f917c4b0100a7ec9a97a12ce0959f83a3f61b
glsl: Add std430 related member functions to glsl_type class

They are used to calculate size, base alignment and array stride values
for a glsl_type following std430 rules.

v2:
- Paste OpenGL 4.3 spec wording as it mentions stride of array. (Jordan)

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h