summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_typeinfo.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-13 13:52:37 -0700
committerBrian Paul <brianp@vmware.com>2010-02-13 13:52:39 -0700
commit26661ac0e10aba63de093e871e40d336696f4827 (patch)
tree0ad94855b9a89a01baf66a9495ab2c2eefdbea47 /src/mesa/shader/slang/slang_typeinfo.h
parentb947b1d433ec5a847a3071c0daac7918924f3f49 (diff)
glsl: added type layout field and new type compare func
Note: because of a weird dependency checking bug, a 'make clean' may be needed before recompiling.
Diffstat (limited to 'src/mesa/shader/slang/slang_typeinfo.h')
-rw-r--r--src/mesa/shader/slang/slang_typeinfo.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_typeinfo.h b/src/mesa/shader/slang/slang_typeinfo.h
index e6fecd350a..aa5f14ebc7 100644
--- a/src/mesa/shader/slang/slang_typeinfo.h
+++ b/src/mesa/shader/slang/slang_typeinfo.h
@@ -68,6 +68,18 @@ typedef enum slang_type_centroid_
} slang_type_centroid;
+/**
+ * These only apply to gl_FragCoord, but other layout qualifiers may
+ * appear in the future.
+ */
+typedef enum slang_layout_qualifier_
+{
+ SLANG_LAYOUT_NONE = 0x0,
+ SLANG_LAYOUT_UPPER_LEFT_BIT = 0x1,
+ SLANG_LAYOUT_PIXEL_CENTER_INTEGER_BIT = 0x2
+} slang_layout_qualifier;
+
+
typedef enum slang_type_qualifier_
{
SLANG_QUAL_NONE,
@@ -170,8 +182,8 @@ slang_type_specifier_equal(const slang_type_specifier *,
extern GLboolean
-slang_type_specifier_compatible(const slang_type_specifier * x,
- const slang_type_specifier * y);
+slang_type_specifier_compatible(const slang_type_specifier *x,
+ const slang_type_specifier *y);
typedef struct slang_fully_specified_type_
@@ -181,6 +193,7 @@ typedef struct slang_fully_specified_type_
slang_type_precision precision;
slang_type_variant variant;
slang_type_centroid centroid;
+ slang_layout_qualifier layout;
GLint array_len; /**< -1 if not an array type */
} slang_fully_specified_type;
@@ -194,6 +207,9 @@ extern int
slang_fully_specified_type_copy(slang_fully_specified_type *,
const slang_fully_specified_type *);
+GLboolean
+slang_fully_specified_types_compatible(const slang_fully_specified_type * x,
+ const slang_fully_specified_type * y);
typedef struct slang_typeinfo_