diff options
author | Brian Paul <brianp@vmware.com> | 2009-06-24 16:36:24 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-06-24 16:36:24 -0600 |
commit | 8819ab378f97a29b2b6671c3c5d6d23a11c0a8d9 (patch) | |
tree | 67dcf7c3b512529f60ada1bb9b389de713e9e380 | |
parent | a976cad7ce2d1afdb918247824e011fa23ac2e92 (diff) |
glsl: add comments
-rw-r--r-- | src/mesa/shader/slang/slang_compile_operation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_operation.h b/src/mesa/shader/slang/slang_compile_operation.h index d75965c235..17c6c3e349 100644 --- a/src/mesa/shader/slang/slang_compile_operation.h +++ b/src/mesa/shader/slang/slang_compile_operation.h @@ -171,12 +171,14 @@ extern void slang_operation_add_children(slang_operation *oper, GLuint num_children); +/** Return number of children of given node */ static INLINE GLuint slang_oper_num_children(const slang_operation *oper) { return oper->num_children; } +/** Return child of given operation node */ static INLINE slang_operation * slang_oper_child(slang_operation *oper, GLuint child) { @@ -185,6 +187,7 @@ slang_oper_child(slang_operation *oper, GLuint child) } +/** Return child of given operation node, const version */ static INLINE const slang_operation * slang_oper_child_const(const slang_operation *oper, GLuint child) { |