glsl: Add a macro for the default values for glsl_struct_field

Graphics / Mesa 3D Graphics Library / Mesa - Neil Roberts [igalia.com] - 11 July 2019 06:04 EDT

There are two constructors for glsl_struct_field with different parameters. Instead of repeating them for both constructors, this patch adds a convenience macro. This will make it easier to add a third constructor in a later patch.

014be60398e glsl: Add a macro for the default values for glsl_struct_field
src/compiler/glsl_types.h | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)

Upstream: cgit.freedesktop.org


  • Share