summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-24 13:16:49 -0600
committerBrian Paul <brianp@vmware.com>2009-06-24 13:16:49 -0600
commit3803b05593c6602fc4832307e3f9b0f4b3a9bebd (patch)
tree6d1613ceaf3556d55f90df649c5f579f7380e283
parent2e057392824541ec5ed46a012a88bbd658fac8a5 (diff)
glsl: added slang_oper_num_children() helper
-rw-r--r--src/mesa/shader/slang/slang_compile_operation.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_operation.h b/src/mesa/shader/slang/slang_compile_operation.h
index c69078b007..06b452d3d9 100644
--- a/src/mesa/shader/slang/slang_compile_operation.h
+++ b/src/mesa/shader/slang/slang_compile_operation.h
@@ -167,6 +167,13 @@ _slang_operation_swap(slang_operation *oper0, slang_operation *oper1);
extern void
slang_operation_add_children(slang_operation *oper, GLuint num_children);
+
+static INLINE GLuint
+slang_oper_num_children(const slang_operation *oper)
+{
+ return oper->num_children;
+}
+
static INLINE slang_operation *
slang_oper_child(slang_operation *oper, GLuint child)
{