summaryrefslogtreecommitdiffstats
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index a2fc2b769c0..9cbe11505a6 100644
--- a/ir.h
+++ b/ir.h
@@ -187,6 +187,14 @@ public:
*/
const char *interpolation_string() const;
+ /**
+ * Calculate the number of slots required to hold this variable
+ *
+ * This is used to determine how many uniform or varying locations a variable
+ * occupies. The count is in units of floating point components.
+ */
+ unsigned component_slots() const;
+
const char *name;
/**