diff options
author | Brian Paul <brianp@vmware.com> | 2009-06-24 13:16:49 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-06-26 13:16:33 -0600 |
commit | e5b53c071bf664931f7553e2a9f5ccd96b2c09cb (patch) | |
tree | df104e1980b36b5afca2f1accc1247e7ad4220d6 /src/mesa/shader | |
parent | 3c6480ea42298ae46413ebfacca13100cfefaed2 (diff) |
glsl: added slang_oper_num_children() helper
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_compile_operation.h | 7 |
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) { |