glsl: Add a new ast_type_qualifier::has_layout() method.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 13 Jul 2013 05:34:19 +0000 (22:34 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 23:57:21 +0000 (16:57 -0700)
commit7cef2b22b84aecf9cddf65a3a054fd39e2e9b369
tree4cc861434c0a9de37d1dcc9daecb6a259bf5e844
parent7ce5c6b2147f9af524f4073b6ee3b29c0a5a1522
glsl: Add a new ast_type_qualifier::has_layout() method.

This makes it easy to check if any layout qualifiers are set.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/ast.h
src/glsl/ast_type.cpp