OSDN Git Service

glsl parser: handle interface block member qualifier
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Mar 2013 17:52:19 +0000 (10:52 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 23 May 2013 16:37:11 +0000 (09:37 -0700)
commit4410eba598d574200764d3b0303178d6dd8a93a9
tree0a5faccfb1bc96bc089be8b7e1a5195ca52b874f
parent4369acff5e96782a64adc9c1fc81d63fb07f33f4
glsl parser: handle interface block member qualifier

An interface block member may specify the type:
in {
    in vec4 in_var_with_qualifier;
};

When specified with the member, it must match the same
type as interface block type.

It can also omit the qualifier:
uniform {
    vec4 uniform_var_without_qualifier;
};

When the type is not specified with the member,
it will adopt the same type as the interface block.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_parser.yy