aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-10-05 17:00:31 -0700
committerIan Romanick <[email protected]>2010-10-08 14:21:22 -0700
commit7f68cbdc4d9f602dc2619ac4a90283a4f057a8cb (patch)
tree6a5f406c532817d3cddd651b5993d698e43cab22 /src/glsl/ast.h
parenteafebed5bdfd853c6ec7f7275e219378e441c49c (diff)
glsl: Add parser support for GL_ARB_explicit_attrib_location layouts
Only layout(location=#) is supported. Setting the index requires GLSL 1.30 and GL_ARB_blend_func_extended.
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 5fa932ec806..e5aa5c1b3b5 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -343,9 +343,23 @@ struct ast_type_qualifier {
unsigned origin_upper_left:1;
unsigned pixel_center_integer:1;
/*@}*/
+
+ /**
+ * Flag set if GL_ARB_explicit_attrib_location "location" layout
+ * qualifier is used.
+ */
+ unsigned explicit_location:1;
} q;
unsigned i;
} flags;
+
+ /**
+ * Location specified via GL_ARB_explicit_attrib_location layout
+ *
+ * \note
+ * This field is only valid if \c explicit_location is set.
+ */
+ unsigned location;
};
class ast_struct_specifier : public ast_node {