OSDN Git Service

glsl: add comments
authorBrian Paul <brianp@vmware.com>
Wed, 24 Jun 2009 22:36:24 +0000 (16:36 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000 (13:16 -0600)
src/mesa/shader/slang/slang_compile_operation.h

index d75965c..17c6c3e 100644 (file)
@@ -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)
 {