glsl: store the image format in glsl_struct_field
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 6 May 2017 14:55:46 +0000 (16:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 8 May 2017 14:04:05 +0000 (16:04 +0200)
commit8a6ecde9c1601b77b6d1e637fbe55f6b75a4b21e
tree3229928fac4c6eff2cf48e06fac83e1cebe7b86b
parent14187e1e9e12151e11ca167ce501c671c98d69c6
glsl: store the image format in glsl_struct_field

ARB_bindless_texture allows to declare image types inside
structures, which means we need to keep track of the format.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h