summaryrefslogtreecommitdiff
path: root/glsl_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'glsl_types.h')
-rw-r--r--glsl_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/glsl_types.h b/glsl_types.h
index 3265016146..939c173fd4 100644
--- a/glsl_types.h
+++ b/glsl_types.h
@@ -215,6 +215,15 @@ struct glsl_type {
}
/**
+ * Calculate the number of components slots required to hold this type
+ *
+ * This is used to determine how many uniform or varying locations a type
+ * might occupy.
+ */
+ unsigned component_slots() const;
+
+
+ /**
* Query whether or not a type is a scalar (non-vector and non-matrix).
*/
bool is_scalar() const