glsl: Add a constructor for glsl_struct_field to specify the precision
authorNeil Roberts <nroberts@igalia.com>
Wed, 10 Jul 2019 11:01:38 +0000 (13:01 +0200)
committerNeil Roberts <nroberts@igalia.com>
Thu, 11 Jul 2019 06:04:54 +0000 (08:04 +0200)
commit74d71dac20f151fb3904ee83f6e6159a491dc9db
tree71175de71afc196edf623bfd98865d11ac06c2db
parent014be60398ecde48e5c4e033e79e4ceebf07571f
glsl: Add a constructor for glsl_struct_field to specify the precision

Adds a third constructor to glsl_struct_field which has an extra
parameter to specify the precision.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl_types.h